xhtml
 

Exercise 3: Fahrenheit

The next task is to build a temperature program which goes the other way, converting from Celsius into Fahrenheit. This time, you have to design an expression which does the conversion. Then use it to convert 45 degrees Celsius to Fahrenheit. Here's a skeleton program for you to work from. Your task is to replace 45 by a formula with 45 in it which does the conversion.

See if you can solve the problem without using too many of these hints:

Hint 1

Hint 2

Hint 3

Hint 4


Back