Question: Write a program that uses three methods (using the names below), one for each, to calculate the areas of the following geometric shapes: Circle Rectangle

Write a program that uses three methods (using the names below), one for each, to calculate the areas of the following geometric shapes:

Circle Write a program that uses three methods (using the names below), one

Rectangle for each, to calculate the areas of the following geometric shapes: Circle

Cylinder Rectangle Cylinder In your main() method, call the three methods to compute

In your main() method, call the three methods to compute the areas of the three shapes as follows:

double areaOfCircle = calculateAreaCir(4.0); double areaOfRectangle = calculateAreaRec(4,7); double areaOfCylinder = calculateAreaCyl(2.0,5);

Dont forget to print the results of these shapes in your main() method.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!