#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 coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.