I have the same damn homework, this is easy.
The subfunction is the datafile or the numbers you have to convert.
Place it in some type of while, for, or until loop. I found that the for loop is easiest way to go.
now to calculate the numbers you must place all of this in a $variable
Like : $c and $f
And use either let, expr, or bc to do the math for ya.
Here's a big hint. From the commandline type:
for i in `cat name of data file or temp file`
do
echo $i
done
now calculate $i (or what ever $varible you used) with the formula for centigrade and fahrenheit .
Easy!