Home CPSC 220

Temperature Conversion



To practice using variables, input, output and simple calculations.


For this lab, you will write a program that reads in a temperature in Fahrenheit, and converts it to Celsius and Kelvin. To convert from Fahrenheit to Celsius, you should subtract 32, then multiply by 5/9. To convert from Celsius to Kelvin, you should simply add 273.15.





When your program works, email the code to ifinlay@umw.edu.

Copyright © 2022 Ian Finlayson | Licensed under a Attribution-NonCommercial 4.0 International License.