Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#include #include using namespace std; int main( void ) { float celsius; // cont

ID: 3744493 • Letter: #

Question

#include #include using namespace std; int main( void ) { float celsius; // contains value for degrees in Celsius float fahrenheit; // contains value for degrees in Fahrenheit // Get input value from the end user cout <> fahrenheit; // perform calculations celsius = (fahrenheit – 32.0) * (5.0/9.0); // output the results to the screen cout << setprecision(2) << fixed << showpoint; cout << "Celsius = " << celsius << endl<

can some update this equation to include the calculation of Celsius to fahrenheit also?

Explanation / Answer

#include #include using namespace std; int main(void) { float celsius; // contains value for degrees in Celsius float fahrenheit; // contains value for degrees in Fahrenheit // Get input value from the end user cout > celsius; // perform calculations fahrenheit = 32 + celsius*1.8; // output the results to the screen cout