// FILE: Temperat.cpp // CONVERSION OF CELSIUS TO FAHRENHEIT TEMPERATURE #include #include int main () { // Local data ... const double m = 1.8; const double b = 32; double fahrenheit; // Print the table heading. cout << setw (10) << "Celsius" << setw (15) << "Fahrenheit" << endl; // Print the table. cout.setf (ios::fixed); for (int celsius = 20; celsius >= -20; celsius -= 5) { fahrenheit = m * celsius + b; cout << setw (8) << celsius << setw (15) << setprecision (2) << fahrenheit << endl; } // end for return 0; }