// Nicolas Ruano CS1A Chapter 3 Pp. 144 #10
/*******************************************************************************
* CONVERTING CELSIUS INTO FAHRENHEIT
* ____________________________________________________________________________
* Based on the problem below, we have to figure out how to solve a Chemistry-
* Mathematical problem of how we convert Celcius into Fahrenheit
* ____________________________________________________________________________
* INPUT
* Given value = 100 degrees Celcius
*
* We solve with the following formula provided for solving:
* fahrenheit = (9.0/5.0) * celsius +32
* ___________________________________________________________________________
*
*******************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
double celsius, fahrenheit;
// Ask user for Celsius temperature
cout << "Enter temperature in Celsius: 100";
cin >> celsius;
// Convert to Fahrenheit
fahrenheit = (9.0 / 5.0) * celsius + 32;
// Display result
cout << fixed << setprecision(1);
cout << celsius << " degrees Celsius = 100.00" << fahrenheit << "212.00 degrees Fahrenheit." << endl;
return 0;
}