TemperatureConversionLibrary

ITS 148: Visual Studio.NET I Semester Programming Exercise 14: Using the TemperatureConversionLibrary [1 point total]
Problem Statement: Design a Visual C# application form that will convert and display a range of temperatures for Fahrenheit or Celsius using a TemperatureConversion
class with two functions. As needed, review the instructions on creating and using a class library Week 8 PowerPoint Lecture ITS148_ClassLibrary_Lecture and from
Semester Programming Exercise 13.
The functions inside the TemperatureConversion class are
public static double FahrenheitToCelsius(double temperature)
public static double CelsiusToFahrenheit(double temperature)
Helpful Notes on conversion: Converting a Fahrenheit temperature to Celsius, use expression: celsius = (fahrenheit – 32) * (5 / 9) Converting a Celsius temperature
to Fahrenheit, use expression: fahrenheit = (celsius * (9 / 5)) + 32
The strategy to create and to use the TemperatureConversionLibrary.
1. Complete this assignment as if you had no TemperatureConversionLibrary. 2. Therefore, you will directly implement and test the two functions inside your Semester
Programming Exercise 14 project. 3. Create the TemperatureConversionLibrary only after you have thoroughly tested both functions. 4. Modify your project Semester
Programming Exercise 14 to reference the TemperatureConversionLibrary and use the TemperatureConversion class containing the two functions: FahrenheitToCelsius and
CelsiusToFahrenheit.
Event Procedures for Semester Programming Exercise 14: There are four events associated with the three buttons and on form load. 1. buttonConvert – This button should
use a loop to go from starting temperature to ending temperature and convert each of the values to either Fahrenheit or Celsius, depending on which RadioButton is
checked. Both the original value and the converted value should be displayed in the temperatureDisplayListBox. See sample output.
2. buttonClear–This button should clear the all NumericUpDown counters to 0, clear the ListBox, and set the default radio button to be the radioButtonFahrenheit.
3. buttonExit– This button should end the program and close the form. 4. On form load event – set the default radio button to be the radioButtonFahrenheit.
Semester Programming Exercise 14 1. Start a new project using the Visual Studio C# template and Windows Forms Application inside your assignment folder on your flash
drive and name it SPE14.
2. Rename the default form name from Form1 to FormTemperatureConversionLibraryTest by renaming the Form1.cs file to FormTemperatureConversionLibraryTest.cs through the
Solution Explorer.
3. Create the FormTemperatureConversionLibraryTest form design in Visual C# that closely resembles the GUI which appears on the last page. In addition, implement the
controls as shown on the last page and a. Set the form so that the cancel button will be the Exit button. b. Set the access key C for the Convert button. c. Set the
access key l for the Clear button. d. Set the access key x for the Exit button.
4. Change the label “Programmer: name” by replacing name with your real name.
5. Write the Visual C# code for the following events: a. The Convert button b. The Clear Button c. The Exit button d. The form load
6. Run this programming exercise. Test and verify that all functionality behaves according to the specifications in this exercise.
7. Laulima Delivery: a. Delete the “obj” folder b. Right click on your main project folder SPE14 and select “Send to”->”compressed”. This will make a “SPE14.zip” file.
c. Upload your zipped file.
Create the TemperatureConversionLibrary: Review the Week 8 PowerPoint Lecture ITS148_ClassLibrary_Lecture on creating and using a class library. It is also helpful
to review Semester Programming Exercise 13.
Create a TemperatureConversionLibrary library. 1. Rename Class1.cs to TemperatureConversion.cs. 2. Copy your two tested temperature functions from Semester
Programming Exercise 14. 3. Make the necessary changes to the two functions. You should have no red wiggly marks in the code. 4. Build a release executable DLL.
Note: It is not necessary to add a reference to the Windows Forms since no form or form control is referenced by your two functions assuming that you have correctly
implemented the two functions.
Semester Programming Exercise 14 to use the TemperatureConversionLibrary. 1. Copy the release version of the TemperatureConversionLibrary.dll directly into the SPE14
folder. 2. Add a reference to the TemperatureConversionLibrary.dll library. 3. Add a using directive to the TemperatureConversionLibrary.dll library. 4. Comment out
methods FahrenheitToCelsius and CelsiusToFahrenheit. 5. All calls to methods FahrenheitToCelsius and CelsiusToFahrenheit should be prefaced by the class
TemperatureConversion which is the name of the class in the TemperatureConversionLibrary. 6. Test and make sure the C# application works with the use of the
TemperatureConversionLibrary.
Sample output or Screenshot of Template Form: There are four images of the “FormTemperatureConversionLibraryTest” form containing the finished product.
Create a form with basic controls show below on form load. Fahrenheit to Celsius Conversion

Celsius to Fahrenheit Conversion Error Detected

Order from us and get better grades. We are the service you have been looking for.