Click this link to download the temperature converter example I showed in class.
You should read chapter 6 of the textbook.