Question: write a Java program as described below: The Temperature Converter The program should request the user to repeatedly select one of the choices below: 1

write a Java program as described below:
The Temperature Converter
The program should request the user to repeatedly select one of the choices below:
1. Choice 1: Convert Celsius to Fahrenheit using the formula:
F =C x 9/5+32
2. Choice 2: Convert Fahrenheit to Celsius using the formula:
C =(F -32) x 5/9
3. Choice 3: Exit the Program
The program should read the user input and then display the result or an error message as
appropriate, a sample run should appear on the screen like the text below:
Welcome to the Temperature Converter Application
Please type 1 for Fahrenheit to Celsius conversion
Type 2 for Celsius to Fahrenheit conversion.
Or type 3 to exit the program
2
Please enter your temperature in Fahrenheit
86
Computing...
The temperature in Celsius is 30
Please type 1 for Fahrenheit to Celsius conversion
Type 2 for Celsius to Fahrenheit conversion.
Or type 3 to exit the program
5
That is not an option.
Please type 1 for Fahrenheit to Celsius conversion
Type 2 for Celsius to Fahrenheit conversion.
Or type 3 to exit the program
1
Please enter your temperature in Celsius
20
Computing...
The temperature in Fahrenheit is 68

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!