CIS 2279 Homework Assignment #03
Due Friday, Sep 19,
2008
All files created must be saved in your class directory
/mnt/homes/CLASSES/CIS2279/<username>
- Create a perl script named lab03.pl in your user directory. The
script must perform the following: (3 pts. each)
- Accepts the current temperature and RH (%) as a
commandline arguments.
- Checks that the temperature is a sane value (for surface
observations) for both high and low values.
(Example: The temperature should be greater than -50F and less than 150F).
- Checks that the RH is a sane value (0-100).
- Print error messages to the screen if there is a problem
with the temperature values.
- Print the temperature and RH% to the screen in a
readable manner.
- Check that your class directory exists and is writeable.
- Check that the file "lab03.pl" exists in your class
directory. Print text to the screen informing the user about it's
status.
last updated: 16 Sep 2008 21:06