Question: You are going to convert temperatures in this program. You will give the user the choice of converting Fahrenheit to Celsius or Celsius to Fahrenheit.

You are going to convert temperatures in this program.

You will give the user the choice of converting Fahrenheit to Celsius or Celsius to Fahrenheit. Display the number entered and the correct answer. See the requirements below:

There will be a Main() for testing each file/class that you create

You will have a menu for this assignment. This means a separate file/class called conversionMenu.java

You will have the temperature conversion functions in a file/class called tempConversions.java

Your Main() that runs the whole program is going to be in a file called yourlastname Assignment4.java So mine would be called schuettAssignment4.java

The user can convert either Fahrenheit to Celsius or Celsius to Fahrenheit as many times as they want to

After each conversion the user will see what they entered and the correct answer.

Following F the user will also see the menu again

You will also need to use printf for all output

Dont forget to add your heading class and display that information at the beginning of the program as well as thanking them at the end

The formulas are: centigrade = (fahrenheit - 32) * 5/9 fahrenheit = centigrade * 9/5 + 32

Trivia: the brains behind: Anders Celsius,

Swedish physicist and astronomer, 1701 1744 Gabriel Fahrenheit,

German physicist, 1686 - 1736, inventor of the thermometer How did they choose the ranges?

CELSIUS: range of 100 steps, 0 degree Centigrade = freezing point of water, 100 degree Centigrade = boiling point of water FAHRENHEIT: range of 180 steps, 32 degree Fahrenheit = freezing point of water, 100 degree Fahrenheit = body temperature of a person (not very accurate...), 212 degree Fahrenheit = boiling point of water

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!