Display the following CALCULATION OF VOLUMES [CHOICE] [SHAPE] 1 Cuboid 2 Sphere 3 Cylinder 4 Exit Enter your choice-> b. The user has to input the choice. Display the appropriate message when the user enters invalid input. c. Based on the choice entered, get the data required from the user and display the volume of the shape chosen. d. The program will loop again start from step 1. The process will only stop when the user enters choice 4 (The program will remain to loop if the enter choice is not 4) e. After the program exit from the loop, display the total_volume and average for all the shapes that have been calculated in the program. f. End the program by giving a closing message to the user
Display the following
CALCULATION OF VOLUMES
[CHOICE] [SHAPE]
1 Cuboid
2 Sphere
3 Cylinder
4 Exit
Enter your choice->
b. The user has to input the choice. Display the appropriate message when the user enters invalid input.
c. Based on the choice entered, get the data required from the user and display the volume of the shape chosen.
d. The
user enters choice 4 (The program will remain to loop if the enter choice is not 4)
e. After the program exit from the loop, display the total_volume and average for all the shapes that have been calculated in the program.
f. End the program by giving a closing message to the user.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images