1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mafiozo [28]
3 years ago
8

Implement a program that manages shapes. Implement a class named Shape with a method area() which returns the double value 0.0.

Implement three derived classes named Rectangle, Square, and Circle. Declare necessary properties in each including getter and setter function and a constructor that sets the values of these properties. Override the area() function in each by calculating the area using the defined properties in that class.Using Java to write a program that repeatedly shows the user a menu to create one of the three main shapes or to print the shapes created so far. If the user selects to create a new shape, the program prompts the user to enter the values for the size of the selected shape. The shape is then stored in an array. If the user selects to print the current shapes, print the name and the total area of each shape to the console.Hint: You may limit the size of the array to 10.
Engineering
1 answer:
djverab [1.8K]3 years ago
3 0

Answer:

Explanation:

The following code was written in Java. It creates classes for each one of the shapes requested and includes all of their variables and the area method, as well as a toString method. Then in the main method, the menu is created which allows the user to enter the shape that they want and if they decide to exit it will print out every shape within the shapes array. Due to technical reasons I have added the code as a txt file below and in the picture you can see the output.

Download txt
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark"> txt </span>
19e97f0877c0f4554bca1f4a163eadac.jpg
You might be interested in
Waste that is generated by a business is called a _____________.
matrenka [14]
It is called a ‘Waste Stream’

This should be right! Hope this helps, have a great day!
8 0
3 years ago
A 10-m long steel linkage is to be designed so that it can transmit 2 kN of force without stretching more than 5 mm nor having a
Fed [463]

Answer:

<em>minimum required diameter of the steel linkage is 3.57 mm</em>

<em></em>

Explanation:

original length of linkage l = 10 m

force to be transmitted  f = 2 kN = 2000 N

extension e = 5 mm= 0.005 m

maximum stress σ = 200 N/mm^2 = 2*10^{8}  N/m^{2}

maximum stress allowed on material σ = force/area

imputing values,

200 = 2000/area

area = 2000/(2*10^{8}) = 10^{-5} m^2

recall that area = \pi d^{2} /4

10^{-5} = \frac{3.142*d^{2} }{4} = 0.7855d^{2}

d^{2} = \frac{10^{-5} }{0.7855} = 1.273*10^{-5}

d = \sqrt{1.273*10^{-5}  } = 3.57*10^{-3} m = 3.57 mm

<em>maximum diameter of  the steel linkage d = 3.57 mm</em>

4 0
3 years ago
What is vapier calliper​
SIZIF [17.4K]

Answer:

A calliper is a device used to measure the dimensions of an object.

Many types of calipers permit reading out a measurement on a ruled scale, a dial, or a digital display. Some calipers can be as simple as a compass with inward or outward-facing points, but no scale.

I'm not sure what a "Vapier" Calliper is, but I assume it's about the same thing.

4 0
2 years ago
Computers work with only two states: zero and one (e.g. short , tall)and is known as binary however in fuzzy logic there are ran
Ymorist [56]

Answer:

1) a)True

   b) False

2) False

2. True

4. True

5. True

Explanation:

1.a)Computers work with only two states: zero and one which is true, the language is in 1 and 0 which is called binary

b)in fuzzy logic there are range of states such as short, little tall, very tall etc...

That is false because Fuzzy logic contains also ones and zeros (Binary).

2)2. This is false because by combining the three colors we will get only

256*256*256 color and we don't get billions of colors

eg:R G B

255 0 0 -->one color

220 0 200---> one color

Due to the difficult economic times, increased global competition, demand for customization, and increased consumer sophistication, many companies have increased their investment in hiring many employees, and outsource & off shore middle managers True or False

yes this may be True because By increased global competition, demand for customization the product needs to be developed. And for development of new products we need employees, managers etc. This in-turn increases the outsourcing of offshore middle managers.

A mouse driver (software) can have a virus if its program gets infected true or False

This is True

It depends on the virus file. Some program need to be execute perfectly if it can be infected with virus. Some applications need not run because of virus files both the situations are possible.

5)Many managers were able to tackle y2k on time and saved billions. true or False;

This is True. After the year 2000, a lot of managers are able to control billions of people because many of the Top MNC's are tackled more by managers.

5 0
4 years ago
How Do Solar Engineers Help Our Everyday Life? <br> (2 or more sentences please)
scZoUnD [109]

Answer:

Solar engineers plan, design, and implement solar energy projects. They may manage anything from large-scale municipal projects to home rooftop installations. He or she may also oversee or manage implementation of the plan. Solar engineers may also need to report on the efficiency, cost, and safety of the project.

5 0
3 years ago
Other questions:
  • Describe the basic mechanism by which positive photolithography transfers a pattern, and comment on the chemical interactions of
    11·1 answer
  • 1. The area of the given triangle is 25 square units. What is the value of x?<br> X+2
    8·1 answer
  • Technician A say's that The most two-stroke engines have a pressure type lubrication system. Technician be says that four stroke
    11·1 answer
  • Under a construction management (CM) contract, should the CM firm's responsibilities normally begin at the construction phase, t
    5·1 answer
  • Water at 15°C (rho = 999.1 kg/m^3) from a garden hose fills a 1.5-L container in 2.5 s. Assume that the volume flow rate, tempe
    14·1 answer
  • If a wire has 23.6 A of current and a resistance of 33.3Ω how much voltage is present?
    8·1 answer
  • Which of the following demonstrates a typical project benchmark progression?
    9·2 answers
  • Que a state properties of Sounds ] 1 laws of replactions of light 2 2​
    7·1 answer
  • Phosphorus and nitrogen are included in which category of water pollutants?
    12·1 answer
  • When a process is in a state of statistical control, all of the points on a control chart should fall within the control limits.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!