Rubric 7c4 Temp Convert
Rubric 7c4 Temp Convert
25 points
This one is from scratch. You need to create an application that allows the user to enter in a temperature.
The converted temperature should be displayed when the user chooses either Convert to Celsius or
Convert to Fahrenheit.
1. Find the formulas to convert from C to F, and from F to C. Write them down!
2. Design your form so the user can enter in a temperature value, then use a radio button to select either
Celsius or Fahrenheit.
3. Make sure the tab order is correct. You do not need access keys.
4. The output should display the number with 1 or 2 decimals, and then either F or C appended.
5. Code the FormClosing event so that the user is prompted whether or not he/she wants to close.
6. If the temperature is changed OR the Celsius button is checked OR the Fahrenheit button is checked ,
then the display labels should be cleared. ( Use the TextChanged event along with the checkChanged event)
7. Make sure you have an appropriate title, the form loads in the center of the screen, and the convert
button is the default.
8. Inside the Convert button, code it so that IF the user enters non-numeric value THEN an appropriate
message box is displayed ELSE it converts according to which radio button is checked.
9. Use two (2) functions to convert from Celsius to Fahrenheit, and the one to convert from
Fahrenheit to Celsius. They should both return decimals. I recommend you send the temperature to
each function By Val.
1.
1 pt
_____
2.
Option Explicit
1 pt
_____
3.
2 pts
_____
4.
FormClosing() event
2 pts
_____
5.
2 pts
_____
6.
GetFahrenheit() function
returns decimal
4 pts
_____
7.
GetCelsuis() function
returns decimal
4 pts
_____
8.
2 pts
_____
9.
2 pts
_____
10.
Calculate
5 pts _____
Boolean convert?
Error message if invalid data?
output displayed with correct units, either F or C