Skip to content

This program allows you to convert between nine types of measurements and contains a total of sixty-two units. It has a total of over 3,000 lines of code.

Notifications You must be signed in to change notification settings

jordynw65/Conversion-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Conversion-Program

This python program allows you to convert between nine types of measurements and contains a total of sixty-two units. It has a total of over 3,000 lines of code.

How To Use

When you run this program, you will be asked the type of measurement conversion you would like to make. You can type in either the number or abbreviation. In this this tutorial, we'll use weight (enter a "w" or "1").

Screen Shot 2022-07-16 at 8 22 47 PM

Next, you will choose the unit you are converting from and to. After inputting abbreviations for both, you can enter all the values you want. Additionally, you can use numbers of any value (positives, negatives, and decimals). If you change your mind about the measurement type, you can enter 0 to return to the beginning.

Your input must be separated by spaces.

Screen Shot 2022-07-18 at 10 19 11 AM

After you finish your input, you will receive an array of all the values converted and rounded to 4 decimals for more accuracy.You can then decide if you'd like to make another conversion. Enter a "1" for yes or a "2" for no. If yes, you will go through the code again like you previously did. If you decide not to, you will get a completion message.

Screen Shot 2022-07-18 at 10 21 24 AM Screen Shot 2022-07-18 at 10 21 36 AM

Measurement Diagram

Here is a diagram with all of the measurements and included units.

Screen Shot 2022-07-18 at 10 48 08 AM

Conversion Program Diagram.pdf

About

This program allows you to convert between nine types of measurements and contains a total of sixty-two units. It has a total of over 3,000 lines of code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages