// Castulo Jason Quintero CSC5 Chapter 5 homework, pg. 296 #12
//
/**************************************************************************
* COMPUTE AND DISPLAY CELCIUS TO FARENHEIT CONVERSION
* ________________________________________________________________________
* This program converts Celsius temperature to Fahrenheit
* temperatures and displays the results in a table.
*
* Computation is based on the formula:
* Fahrenheit = (9/5 * C ) + 32
* ________________________________________________________________________
* INPUT
* Celsius: temperature in Celsius input by the user
*
* OUTPUT
* Fahrenheit : temperature in Fahrenheit
*************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float Fahrenheit;
float Celsius;
Celsius= 0;
cout << "Celsius:" << "\t" << "Fahrenheit:" << endl;
cout << "-----------------------\n";
for (Celsius=0; Celsius <=20; Celsius++)
{
Fahrenheit = Fahrenheit = ((9.0/5.0) * Celsius) + 32;
cout << Celsius << "\t\t\t" << Fahrenheit << endl;
}
return 0;
}