CIS 2279 Homework Assignment #06
Due Friday, Oct 10, 2008
All files created must be saved in your class directory /mnt/homes/CLASSES/CIS2279/<username>
$dewpt = ((1/$temp_k) - (1/5412 * log($rh/100) ))**-1;
Where $temp_k is the temperature in Kelvin degrees and
$rh is the relative humidity as an integer
(ex. 88.4). You will need to convert the input temperature to
Kelvin (temp C + 273.15). The output of the above equation will
be in Kelvin degrees so you will need to convert back to F.
Creating an additional subroutine for the conversions might not be
a bad idea.
Wind Chill (F) = 35.74 + 0.6215(T) - 35.75(V0.16) + 0.4275(T)(V0.16)
Where T = temperature in degrees F and V = wind velocity in MPH.
Celcius = (TempF - 32)/1.8
last updated: 07 Oct 2008 21:34