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 
Rectangle 
Cylinder 
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
Get step-by-step solutions from verified subject matter experts
