Question: S Part A Create a java program that asks the user to enter the value 1 to convert Fahrenheit to Celsius and a 2

S Part A Create a java program that asks the user to enter the value 1 to convert Fahrenheit to Celsius and a 2 to convert Celsius to Fahrenheit. Then ask the user for the temperature and convert it from the original to the desired temperature. Part B. Change the program to include two methods. The first method requires a double and returns a double. It is called FahrToCelsius and converts a Fahrenheit temperature to a Celsius temperature. The second method requires a double and returns a double. It is called CelsiusToFahrenheit and converts a Celsius temperature to Fahrenheit temperature. Use method calls in the main method to convert the temperatures input by the user. Part C. Create a class called Conversion that has two methods. The first method requires a double and returns a double. It is called FahrToCelsius and converts a Fahrenheit temperature to a Celsius temperature. The second method requires a double and returns a double. It is called CelsiusToFahrenheit and converts a Celsius temperature to Fahrenheit temperature. Assuming the above: change the main method to instantiate an object from the Conversion class. Using the object created from the class, call the CelsiusToFahrenheit method and the FahrToCelsius method, passing the correct temperature for each one.
Step by Step Solution
There are 3 Steps involved in it
Code snapshots Part A code snapshot Source code Below is the source code TemperatureConvjava import javautil Part A class class TemperatureConv main public static void mainString args double temperatu... View full answer
Get step-by-step solutions from verified subject matter experts
