IT 116: Introduction to Scripting
Homework 3


Sunday, September 24th at 11:59 PM


There is one deliverable for this assignment: It must be in an hw3 directory, which you must create inside a hw directory inside you it116 directory.

Make sure the script obeys all the rules in the Script Requirements page.


This program must prompt the user for a temperature in Fahrenheit, convert that temperature to Celsius and print the Celsius temperature.

The Celsius temperature must be an integer.

Then the program must print a blank line.

The program must now prompt the user for a temperature in Celsius, convert that number to Fahrenheit and print the Fahrenheit temperature.

The Fahrenheit temperature must be an integer

You will find conversion formulae here and here.


Your output should look something like this

Please enter the temperature in Fahrenheit: 40
You entered 40 degrees Fahrenheit
40 degrees Fahrenheit is  4 degrees Celsius

Please enter the temperature in Celsius: 4
You entered 4 degrees Celsius
4 degrees Celsius is  39 degrees Fahrenheit
The text colored blue is user input.

Be sure to run this script on the Unix machine so you know it works in the environment in which I will run it when I score your homework.