Question: Write a Java program that allows users to convert temperatures from Celsius to Fahrenheit and Kelvin. The program also evaluates whether the converted Fahrenheit temperature

Write a Java program that allows users to convert temperatures from Celsius to
Fahrenheit and Kelvin. The program also evaluates whether the converted
Fahrenheit temperature indicates a normal body temperature, a fever, or if it's
slightly elevated. Your task is to analyze the provided code, run it, and then
enhance it based on the requirements below.
The user will be given an option to select option 1 or 2 or 3
- If the user selects option 1 then the user will need to enter the Temperature in
Celsius
Convert it to Fahrenheit
Fahrenheit=(9.0/5)* Celsius +32
Then Evaluate the temperature:
-98\deg F to 99\deg F is considered normal.
- Above 100.4\deg F is considered a fever.
- Other values are considered slightly elevated.
- If the user selects option 2 then the user will need to enter the Temperature in
Celsius
Conver to Kelvin
Kelvin = Celsius +273.15
- If the user select option 3
Displays a message thanking the user for their time (as shown on the Sample
Run)
Invalid option. If the user selects any other number, display an error message
(as shown on the Sample Run)
Sample Run:
First Name Last Name
Enter your options 1,2 or 3:
1: Convert Celsius to Fahrenheit
2: Convert Celsius to Kelvin
3: Exit

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 Databases Questions!