0% found this document useful (0 votes)
440 views1 page

Rubric 7c4 Temp Convert

This document provides instructions for creating a temperature converter application in Visual Basic. It includes steps to design the user interface with an input field and radio buttons to select Celsius or Fahrenheit. It also describes adding event handlers for when the form closes, input changes, or conversion buttons are clicked. Functions must be coded to convert between Celsius and Fahrenheit, returning decimals. The application should display an error if non-numeric text is entered and output the converted temperature with the correct units.

Uploaded by

api-167226538
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
440 views1 page

Rubric 7c4 Temp Convert

This document provides instructions for creating a temperature converter application in Visual Basic. It includes steps to design the user interface with an input field and radio buttons to select Celsius or Fahrenheit. It also describes adding event handlers for when the form closes, input changes, or conversion buttons are clicked. Functions must be coded to convert between Celsius and Fahrenheit, returning decimals. The application should display an error if non-numeric text is entered and output the converted temperature with the correct units.

Uploaded by

api-167226538
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Name___________________________________________Hour_______

7C4 Temperature Converter

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.

Name, Date, Description

1 pt

_____

2.

Option Explicit

1 pt

_____

3.

Centered, Convert button default

2 pts

_____

4.

FormClosing() event

2 pts

_____

5.

KeyPress() event (# and .)


OR Message box if non-numeric

2 pts

_____

6.

GetFahrenheit() function
returns decimal

4 pts

_____

7.

GetCelsuis() function
returns decimal

4 pts

_____

8.

If Input changes - clears output


Temp changes
Celsius button clicked
Fahrenheit button clicked

2 pts

_____

9.

Form Title, alignment, centered

2 pts

_____

10.

Calculate
5 pts _____
Boolean convert?
Error message if invalid data?
output displayed with correct units, either F or C

You might also like