6.01 Testing


Program Pseudocode

Program Code

Review Question Response
What was the purpose of your program? The purpose of my program was to have the user input different values, in miles, to have them be converted into kilometers. Instead of just listing values, I decided to let the user decide what values would be converted.
How could your program be useful in the real world? Obviously this kind of program already exists in the world, in fact Google has one show up every time you search for something similar. But these programs help those around the world, because there are so many different units of measure, and they all help to make sure that everything in in sync with each other. If they aren't in sync, things around the world can go wrong (as silly as it sounds).
What is a problem you ran into, and how did you fix it? I was wondering why the numbers weren't converting, until I realized I did not put int and float in front of the input functions. I thought I did, but apparently I had not. That was really the only problem I had when making this program.
Describe one thing you would do differently the next time you write a program. Next time, for this kind of program, I would add more units of measure, as well as let the user convert back and forth, instead of just one unit to the other.