CIS 2279 Homework Assignment #03
Due Friday, Sep 16,
2011
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
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). Print an error message if the value is invalid.
- Checks that the RH is a sane value (0-100) and prints an error
if the value is out of range.
- Print the temperature and RH% to the screen in a
readable manner.
- Check that your class directory exists and is writeable.
- Test if
"/mnt/homes/CLASSES/CIS2279/LAB03/test.jpg" is a file or a
directory. Print
text to the screen informing the user about it's
status.
Solution
last updated: 14 Sep 2011 19:16