Monday, January 6, 2014

Conversion Machine!

Summary:
Our second assignment was to make a "Conversion Machine!" This program first asks which general type of conversion should be run. 1 = Distance, 2 = Temperature, 3 = Binary. Then once in the desired option for which type of general conversion is selected, the program asks for which specific conversion type should be used ("A --> B or B ---> A?"). Then the appropriate conversion factors are applied and the converted result is printed. 
Issues:
The main issue, which wound up not even being included was binary. Binary is fairly confusing in the first place, so bringing it into a python program was out of my league at the time. Also this program does not repeat or defend against the "Bleen Test"*
Profit:
This program's main purpose was to make sure everybody knew how to use operators in python, and it achieved its task. I quickly got the hang of using operators, which are used in almost every future program we did. 
*Side Note:
The "Bleen Test" is a test created by Mr. Medvitz which is essentially intended to see if the program is idiot proof. For example, if the program needs an input of 1, 2, or 3, and someone inputs "Bleen" or "7" that will break the program unless there are measures taken against that. 

No comments:

Post a Comment