CIS 2279 Homework Assignment #06
Due Mon Oct 10, 2016
Create a perl script named lab06.pl. The script must perform the following:
- Create a subroutine that takes the temperature in degrees
Fahrenheit as an argument and returns it in degrees Celcius.
- Create a subroutine that takes the temperature in degrees
Celcius as an argument and returns it in degrees Kelvin.
- Create a subroutine that takes the temperature in degrees
Celcius as an argument and returns it in degrees Fahrenheit.
- Create a subroutine that takes the temperature in degrees
Fahrenheit and the wind speed in mph as arguments and returns the
windchill in degrees Fahrenheit.
- Asks the user to input a temperature in degrees Fahrenheit
and return it in all three scales using the subroutines you
created.
- Asks the user to input the wind speed in mph. Calculate the
wind chill using the
subroutine you created and print the windchill in all three
temperature scales using the conversion subroutines you created.
- Print the values to the terminal with some descriptive text.
Other information:
- 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
- Kelvin = (temp C + 273.15)
solution
last updated: 29 Sep 2016 17:47