Skip to content

This calculator calculates the volumes of rectangular prisms, cones, cylinders, square pyramids, and spheres.

Notifications You must be signed in to change notification settings

Pyrodox/Volume-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Volume-Calculator-VolumeCalculator.py is the main file.

This calculator calculates the volumes of rectangular prisms, cones, cylinders, square pyramids, and spheres. https://towardsdatascience.com/3-useful-projects-to-learn-python-classes-cf0076c36297 Originally got the idea from this website, but I used volumes of 3D shapes instead of areas of polygons. I did not mod this project; it was created by me. This project was created to solidify my understanding of classes and objects.

Some features:

  1. The volume calculator asks for which shape you'd like to calculate.
  2. can catch errors and asks the user again if they typed in a wrong float or string.
  3. user can restart program
  4. while loops
  5. use of classes, a dictionary, a tuple
  6. module

Also my first program over 100 lines.

About

This calculator calculates the volumes of rectangular prisms, cones, cylinders, square pyramids, and spheres.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages