Question: 9.13 - Write a program that converts integer Fahrenheit temperatures from 0 to 212 degrees to floating point Celsius temperatures with 3 digits of precision.
9.13 - Write a program that converts integer Fahrenheit temperatures from 0 to 212 degrees to floating point Celsius temperatures with 3 digits of precision. Perform the calculation using the formula:
celsius = 5.0/9.0*(fahrenheit - 32);
The output should be printed in two left justified columns of 10 characters each, one column for Fahrenheit, one for Celsius. The Celsius temperatures should be preceded by a sign for both positive and negative values.
c++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
