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.