Hello all,
The program works fine, except my instructor wants a decimal point at the end of the Celcius conversion. For example:
Enter the temperature in degrees Fahrenheit: 212
The corresponding Celcius temperature is: 100.0
Press any key....
Can someone help me out with this? I know there is something missing with Celcius - I'm not sure what I'm supposed to do here. I just spent an hour and a half of googling how to fix this with no answers. Keep in mind that what I have below so far is what we've learned and I'm not sure how commands like "Float", or anything that isn't there is going to fly with the instructor.
double F = 0.0;
cout << "Enter the temperature in degrees Fahrenheit: ";
cin >> F;
cout << endl;
cout << endl;
cout << setprecision(1) << fixed;
cout << "The corresponding Celcius temperature is: " << (F - 32) * 5.0 / 9.0 = C << endl;
cout << endl;
Now the C in the equation 5.0 / 9.0 = C is flagged by the system as undefined.
When I added the C (double C = 0.0;) nothing happened and the C is still undefined.