Question: Your task in this exercise is to build a program that can convert temperatures between Celsius and Fahrenheit. The program will take user input for

Your task in this exercise is to build a program that can convert temperatures between Celsius and Fahrenheit. The program will take user input for a temperature and the desired conversion direction, and then output the converted temperature. Here are the steps: 1. Create a new Java class called "TemperatureConversion". 2. In the main method, use a Scanner object to ask the user for a temperature and the desired conversion direction (Celsius to Fahrenheit or Fahrenheit to Celsius). 3. Implement conditional statements to perform the selected conversion using the appropriate arithmetic formula. 4. Display the converted temperature to the user. 5. The formulas for conversion are: - Celsius to Fahrenheit: F=(C9/5)+32 - Fahrenheit to Celsius: C=(F32)5/9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
