
PROGRAM
4
C++
K.
DZWONKIEWICZ
Write a program that will convert Celsius to Fahrenheit. Use this format…
This temperature in Fahrenheit is: 212
Hint: (f= (9/5) * C + 32)
PART TWO: Convert a Fahrenheit temperature to
Celsius as you did above.
Hint: (c= (5/9) * (f-32))
CAUTION: WATCH THE DIVISION, MAKE SURE YOU GET
DECIMALS NOT INTEGERS. You can cast
the operator.
(If you are able do a conditional statement to
have the option to do the one they require…
use an if
(scale==’f’) {
xxx
}
if (scale==’c’) {
xxx
}

