Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions

Question

Understand highlights of legislation enacted in 1964 and beyond

Answered: 1 week ago