Question: 4. Write a program that converts a temperature from degrees fahrenheit to degrees centigrade. The formula for converting the temperature from degrees fahrenheit to degrees

 4. Write a program that converts a temperature from degrees fahrenheit

4. Write a program that converts a temperature from degrees fahrenheit to degrees centigrade. The formula for converting the temperature from degrees fahrenheit to degrees centigrade is: C = (5 / 9) * (F-32) Your program should prompt the user to enter a temperature given in degrees Fahrenheit. Output the temperature both in fahrenheit and centigrade. Format your output to have 2 decimal places. (Hint: Make sure the formula does floating point calculations.)

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!