Question: I am using Java as my programming method. Homework 3-1 Write a program that converts a temperature from Fahrenheit to Celsius. It should do the

I am using Java as my programming method. I am using Java as my programming method. Homework 3-1 Write a

Homework 3-1 Write a program that converts a temperature from Fahrenheit to Celsius. It should do the following: 1. Prompt the user for input 2. Read a double value from the keyboard 3. Calculate the result. Here is the formula. C = (F-32) * 5/9 4. Format the output to one decimal place. Your prompt to the user to enter the temperature in Celsius must be: Enter the Fahrenheit Temperature as a decimal: Your output must be of the format: fahrenheit Temperature F = celsiusTemperature C For example: If the user entered: 75.2 Your program would output 75.2 F = 24.0 C Sample run would look like: Enter the temperature in degrees celsius: 75.2 75.2 F = 24.0c Sample run would look like: Enter the temperature in degrees celsius 7.5 7.5 F = -13.6 C Hinti. Be careful not to use integer division! Here is the formula C = (F - 32) * 5/9 Hint2: Remember to use printf to format the output Please make sure to end each line of output with a newline Please note that your class should be named Fahrenheit ToCelsius

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!