I was under the impression last class that the program was due today, but as an extension has been given, I have added the time conversion back into my program. I was able to begin by programming the program to limit the maximum time value to 24, as there are only 24 hours in a day.
I finished programming the process of converting the temperature units for both F-C and C-F. I tweaked the appearance of the form slightly so instead of the answer appearing in a label, the answer will now appear in a text box, but if the user were to edit the answer text box, it will have no affect on the conversion.
Fahrenheit – Celsius program:
Celsius – Fahrenheit program:
Today I designed the temperature conversion and was able to find a way to hide previous forms so that they would not build on each other and create unnecessary mess on the user’s screen. in looking for the Celsius/Fahrenheit conversion formulas, I realized I had forgotten to add liquid measures to the program, and I added them in the place of the speed conversions, which had been removed last class.
view of liquid conversion select screen:
Updated form 1:
Temperature conversion forms:
Actual programming as of now for temperature:
Created the base of the interactive screens and linked the buttons on the first form to open the other forms. Due to miles per hour – kilometers per hours being the same conversion as miles- kilometers, I also chose to remove the ‘speed’ category form my converter.
From button: Temperature
From button: Distance
From Button: Time
From Button: Mass