Question: in java The formula for converting a temperature from Centigrade to Fahrenheit is: F = 9 5 * C + 3 2 Where F

in java
The formula for converting a temperature from Centigrade to Fahrenheit is:
F =9\5* C +32
Where F is the Fahrenheit temperature and C is the centigrade temperature. Write a method named Fahrenheit that accepts a centigrade temperature as an argument. The method should return the temperature, converted to Fahrenheit. Demonstrate the method by calling it in a loop that displays a table of the Centigrade temperature 0 through 20 and their Fahrenheit equivalents.

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 Programming Questions!