Question: PLEASE WRITE CODES IN C#, USING windows forms app (.net framework) /* * Use try catch to handle exceptions for data input * * The
PLEASE WRITE CODES IN C#, USING windows forms app (.net framework)
/* * Use try catch to handle exceptions for data input * * The conversion formulas are given as: * C = 5/9(F - 32) - use this in the button Convert to Celsius * F = 9/5C + 32 - use this in the button Convert to Fahrenheit * NOTE: do take care of division of 2 integers. Remember that in C# when you divide two integers, the result is an integer * Display converted temperature to 1 decimal place * * Reset button - clear all inputs and outputs and place the cursor at textbox1 * Exit button - exit the application */
For each application, provide the appropriate coding for each button as follows: Celsius and Fahrenheit Temperature Converter (points allocated: 12, 12, 3, 1) o button Convert to Celsius - get the input from textbox1; use Exception Handling to make sure that the input is a number. If there is an error, provide a message and reset the form. Use the formula given to convert the temperature entered in Fahrenheit to Celsius and display the output in label2 to 1 decimal place. For example, if the user enters 100, the output should be 37.8 o button Convert to Fahrenheit - get the input from textbox2; use Exception Handling to make sure that the input is a number. If there is an error, provide a message and reset the form. Use the formula given to convert the temperature entered in Celsius to Fahrenheit and display the output in label3 to 1 decimal place. For example, if the user enters 26.5, the output should be 79.7 o button Reset - clear the input textboxes and output labels, set the focus on the first textbox o button Exit - exit the application Celsius and Fahrenheit Temper... Convert "Fto C Enter Temperature 100 Convert to Celsius 37.8 Convert C to F Enter Temperature 26.5 Convert to Fahrenheit 79.7 Reset Exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
