#WSQ05<\/a> #TC1017<\/a><\/p>\n DIEGO PLASCENCIA A01229988<\/p>\n THIS PROGRAM IS USED TO TRANSFORM A TEMPERATURE GIVEN BY THE USER IN FAHRENHEIT TO CELCIUS AND KNOWING IF THE WATER WILL BOIL AT THAT TEMPERATURE.<\/p>\n #include<\/a> <iostream> #WSQ05 #TC1017DIEGO PLASCENCIA A01229988THIS PROGRAM IS USED TO TRANSFORM A TEMPERATURE GIVEN BY THE USER IN FAHRENHEIT TO CELCIUS AND KNOWING IF THE WATER WILL BOIL AT THAT TEMPERATURE.#include <iostream>using namespace std;int main (vo… Continue reading
using namespace std;
int main (void){
double t; \/\/ variable for temperature.
double r; \/\/ variable for the result.
cout<< “What is the temperature in Fahrenheit? “<< endl;
cin>> t;\/\/user introduce the value in Fahrenheit.
r= (5*(t-32))\/9; \/\/formula
cout<< “A temperature of “<< t << “degrees Fahrenheit is” << r <<“in Celsius”<<endl;
if (r>=100){ \/\/if r (temperature in celcius) is higher than 100, it will display that water will boil.
cout<< “Water boils at this temperature”<<endl;}
else{ \/\/if r (temperature in celcius) is lower than 100, it will display that water will not boil.
cout<< “Water don’t boil at this temperature”<<endl;
}
}<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"