Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions