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
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
question
Engineering, 04.07.2019 18:10
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
question
Engineering, 04.07.2019 18:10
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
You know the right answer?
Area class

write a class that has three overloaded static methods for calculating the ar...
Questions
question
Mathematics, 02.04.2021 01:00
question
Mathematics, 02.04.2021 01:00
Questions on the website: 13722363