- numpy - matplotlib Physim

Basic Shape Volume Grapher

In this section you will practice and apply what you have learned from the Volume simulations, creating a volume plotter program which plots and calculates the volume of any of the basic shapes based on user choice and understanding the calculations being done.


If you are looking for a reference for Python consider looking at the Python Reference Sheet on the site.



Below are sample runs of some of the outputs you should get when running the program.


Basic Shape Volume Grapher:


For user input 1, the output should be:


For user input 2, the output should be:


For user input 3, the output should be:


For user input 5, the output should be:


For user input 6, the output should be:



Here is a code editor so that you can compute your converter program.


# insert your code here


Go Back to Area and Volume Exercises Page