pyBegin / projects / maths
🧮

Mensuration Calculator

A console program that calculates the volume of various 3D shapes (cube, pyramid, cylinder, sphere, cone, ellipsoid, torus, hexagonal prism) from u…

137 linesRunnable

Mensuration Calculator

A console program that calculates the volume of various 3D shapes (cube, pyramid, cylinder, sphere, cone, ellipsoid, torus, hexagonal prism) from user-supplied dimensions.

Example

-----------------------
Select operation.
1.Cube/cuboid
2.Pyramid(RightRectangular)
3.Cylinder
4.Sphere
5.Cone
6.Ellipsoid
7.Torus(Donut)
8.Hexagonal Prism
-----------------------
Enter choice(1/2/3/4/5/6/7/8): 3
-----------------------
Enter the raduis: 5
Enter the height: 10
-----------------------
Finding the volume for Cylinder
-----------------------
The volume of the Cylinder is:  785.7142857142857 unit's

How to run on localhost

python 3dShapeVolume.py

Dependencies

Standard library only.