CSE378 Fall 1998 - Homework 3 ----------------------------- Due Date: Monday October 19th, by the start of class. For homework 3, you are to write a program using SPIM which will convert a temperature from fahrenheit to celcius. Your program should: -prompt the user for the fahrenheit temperate -read in the given value (you can assume that it will be a valid number) -compute the temperate in celcius (C=(F-32)*5/9) -display the resulting temperature. It is acceptable to simply use integer computations for this assignment. Helpful pointers on Unix and SPIM can be found on the course Web page. Your program must have comments, comments, comments. You should turn in a file which can be loaded into SPIM and executed using electronic turnin. Below is a sample of what running your completed code should look like: Enter the temperature: 32 The temperature in Celsius is 0 Enter the temperature: 18 The temperature in Celsius is -7 Enter the temperature: -3 The temperature in Celsius is -19 Enter the temperature: 212 The temperature in Celsius is 100