Home CPSC 220

Temperature Conversion

Objective

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

Task

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.


Details


Submitting

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

Copyright © 2018 Ian Finlayson | Licensed under a Creative Commons Attribution 4.0 International License.