/Conversion-Program

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.

Primary LanguagePython

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