Write a class called convertTemperature that can be used to convert temperature from Celsius to Fahrenheit and from Fahrenheit to Celsius. In this class the constructor accepts a value representing a temperature. Provide mathods to carry out the conversions.
Use JoptionPane class to write a menu driven test class. First the JOptionPane to eneter the number that you want to convert. Secondly, use the JOptionPane again to select the method you want to call. Use the switch statement to determine which one of the methods is to be called. Here is the format of the menu:
Converting temparature
1. Celcius to Fahrenheit
2. Fahrenheit to Celsius
3. Quit
Use the following data to test your program:
45 Celsius to Fahrenheit
100 Fahrenheit to Celsius
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
## Platform
This is a java assignment and it has to be dome is JCreator