Intro to Programming Lab 6 Temperature Conversion (Code)

More Views

Quick Overview

Intro to Programming Lab 6 Temperature Conversion (Code)

Program Requirements:For this lab you will complete the Temperature Conversion Windows Form project that you designed the user interface for in Lab 5. This program will accept a temperature value in either degrees Celsius or Fahrenheit and convert that temperature to the other scale, i.e. if a Celsius temperature is entered it will be converted to Fahrenheit and vice versa. The user should enter the temperature value in a text box, select the scale to convert to (either degrees Celsius or Fahrenheit) using radio buttons, and click on a button to cause the conversion and results to be displayed on the form. Temperature conversions will only be completed on valid numeric temperatures otherwise an error message should be displayed to the user on an attempt to convert.

Detailed requirements:- Before you begin this lab, consider the feedback you received for Lab 5 and fix any/all issues with the user interface.- When the user clicks the button to convert, the first step is to validate the user input in the textbox. Any real number is acceptable. If the user input in the textbox is not a real number, display an appropriate message in the results output label as follows.“ERROR: Please enter a numeric temperature to convert.”- If the user input is a real number, store it, then calculate the converted temperature value based on the “convert to” radio button selected. Then display the results in the output label. Follow this example for the appropriate format:“72.4 degrees Fahrenheit converts to 22.44 degrees Celsius.”- When the user clicks the button to clear, the form should be reset to its default state, ready for an entry. Hint: there may be things to do other than just clearing both the input textbox and the results output label.- When the user clicks the button to exit, the form should close, ending the program.

Style GuideTo be eligible for full marks on this or any lab in this course your application must conform to the requirements as outlined above and the course Style Guide, in this case making sure to include:- Standard course naming rules and conventions.- Appropriately declared data types for all possible variables and/or constant(s).- Strict adherence to the IPO structure in the most efficient manner possible.- Appropriate and complete program documentation.

Details

Intro to Programming Lab 6 Temperature Conversion (Code)

Program Requirements:For this lab you will complete the Temperature Conversion Windows Form project that you designed the user interface for in Lab 5. This program will accept a temperature value in either degrees Celsius or Fahrenheit and convert that temperature to the other scale, i.e. if a Celsius temperature is entered it will be converted to Fahrenheit and vice versa. The user should enter the temperature value in a text box, select the scale to convert to (either degrees Celsius or Fahrenheit) using radio buttons, and click on a button to cause the conversion and results to be displayed on the form. Temperature conversions will only be completed on valid numeric temperatures otherwise an error message should be displayed to the user on an attempt to convert.

Detailed requirements:- Before you begin this lab, consider the feedback you received for Lab 5 and fix any/all issues with the user interface.- When the user clicks the button to convert, the first step is to validate the user input in the textbox. Any real number is acceptable. If the user input in the textbox is not a real number, display an appropriate message in the results output label as follows.“ERROR: Please enter a numeric temperature to convert.”- If the user input is a real number, store it, then calculate the converted temperature value based on the “convert to” radio button selected. Then display the results in the output label. Follow this example for the appropriate format:“72.4 degrees Fahrenheit converts to 22.44 degrees Celsius.”- When the user clicks the button to clear, the form should be reset to its default state, ready for an entry. Hint: there may be things to do other than just clearing both the input textbox and the results output label.- When the user clicks the button to exit, the form should close, ending the program.

Style GuideTo be eligible for full marks on this or any lab in this course your application must conform to the requirements as outlined above and the course Style Guide, in this case making sure to include:- Standard course naming rules and conventions.- Appropriately declared data types for all possible variables and/or constant(s).- Strict adherence to the IPO structure in the most efficient manner possible.- Appropriate and complete program documentation.