subject
Engineering, 18.10.2019 19:00 SkyeShadow525

Area class

write a class that has three overloaded static methods for calculating the areas of the
following geometric shapes:
- circles
- rectangles
- cylinders

here are the formulas for calculating the area of the shapes.

area of a circle: area = Ο€ r2
where p is math. pi and r is the circle's radius
area of a rectangle: area = width x length
area of a cylinder: area = Ο€ r2 h
where p is math. pi, r is the radius of the cylinder's base, and
h is the cylinder's height

because the three methods are to be overloaded, they should each have the same name, but
different parameter lists. demonstrate the class in a complete program.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Apiston-cylinder with a volume of 0.25 m3 holds 1 kg of air (r 0.287 k/kgk) at a temperature of 100 c. heat transfer to the cylinder causes an isothermal expansion of the piston until the volume triples. how much heat is added to the piston-cylinder?
Answers: 3
question
Engineering, 04.07.2019 18:10
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
question
Engineering, 04.07.2019 18:20
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
Answers: 2
You know the right answer?
Area class

write a class that has three overloaded static methods for calculating the ar...
Questions
question
Mathematics, 24.10.2019 07:43
question
Mathematics, 24.10.2019 07:43
question
Mathematics, 24.10.2019 07:43
Questions on the website: 13722361