CIS2279 Homework Assignment #05
Due Friday, Sep 23, 2011
All files created must be saved in your class directory /mnt/homes/CLASSES/CIS2279/<username>
(4 points each)
Create a perl script named
lab05.pl
in your user directory. The script must perform the following:
Test for the existence of the file
/mnt/homes/CLASSES/CIS2279/LAB05/logger.csv
and open it for reading (if it exists).
Skip any lines where the julian day is not 63.
As you loop through the file, skip any lines using
next
where the wind speed is 0mph.
For each line in the file that you do not skip calculate the wind chill for each set of readings.
Determine the lowest windchill value for all the days calculated.
Print out the lowest windchill value to the screen in both Fahrenheit and Celcius with some descriptive text.
Wind Chill (F) = 35.74 + 0.6215(T) - 35.75(V
0.16
) + 0.4275(T)(V
0.16
)
Where T = temperature in degrees F and V = wind velocity in MPH.
Celcius = (TempF - 32)/1.8
Answer
last updated:
28 Sep 2011 17:24