Write a program that asks options about shapes and calculate the volume. Check the web site as a reference: http://en.wikipedia.org/wiki/Volume You may use either switch or if-else to pin point an option use entered. Here is a sample run:

[first run]
Choose which shape to compute the volume (1 for Cube, 2 for Cylinder, 3 for Prism, 4 for Sphere, 5 for Pyramid, 6 for Cone and 7 for Tetrahedron): 1
Enter one of edge: 5.1
The volume of cube with each edge length of 5.1 is 132.65.
[second run]
Choose which shape to compute the volume (1 for Cube, 2 for Cylinder, 3 for Prism, 4 for Sphere, 5 for Pyramid, 6 for Cone and 7 for Tetrahedron): 3
Enter the area of the base: 9
Enter height: 10
The volume of prism with the base area 9 and height 10 is 90.

If you add one more level of option to choose 2D area or 3D volume of the shape and then calculate the area or volume, then you will get 20% extra credit of Prob. 1.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.