Question: The formula for converting a temperature from Fahrenheit to Celsius is Where F is the Fahrenheit temperature and C is the Celsius temperature. Write a

The formula for converting a temperature from Fahrenheit to Celsius is 

C = (F-32) -

Where F is the Fahrenheit temperature and C is the Celsius temperature. Write a method named Celsius that accepts a Fahrenheit temperature as an argument. The method should return the temperature, converted to Celsius. Demonstrate the method by calling it in a loop that displays a table of the Fahrenheit temperatures 0 through 20 and their Celsius equivalents.

C = (F-32) -

Step by Step Solution

3.41 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

ANSWER def Celsiusfahrenheit return 59 fahrenheit 32 printFahrenheit to Celsius Table print for ... View full answer

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 Starting Out With Java From Control Structures Questions!