home

Scientific Computing (Psychology 9040a)

Fall, 2020

Temperature Converter


Write a small program to convert temperature values from Celsius to Farenheit according to the equation:

\[\begin{equation} F = \frac{9}{5}C + 32 \end{equation}\]

The program should ask the user to input the temperature in Celsius, and then print out a sentence giving the temperature in Fahrenheit, like this:

enter the temperature in Celsius: 22.0
22.0 degrees Celsius is 71.6 degrees Fahrenheit

A solution: temperature_sol