Hello everyone,
I have a quiz in a few days, no classes in between now and the quiz and no friends in computer programming class. In order to do the quiz, I need to know how to do this exercise which I did not manage to complete in class.
"Write a function that will convert Fahrenheit to Celsius.
C = (5.0/9.0)(F-32.0).
Write a function prototype as well as a main that will print out the converted temperature (win 32 console application)".
I cannot figure out how to do this from my reading material or lecture notes. Can anyone tell me how or point me to an online document or tutorial on how to do this problem? Thanks.
took me like 3 minutes to type that up... it is basic math, how can you not figure it out from reading material? lol it is basic math, you do know the formula to convert right?
Celsius to Fahrenheit is : (°C × 9/5) + 32 = °F
Fahrenheit to Celsius is : (°F - 32) x 5/9 = °C
you do it the same exact way in computer programing :/