CIS 2279 Homework Assignment #07
Due Friday, Sep 30,
2011
All files created must be saved in your class directory
/mnt/homes/CLASSES/CIS227/<username>
- Create a perl script named lab07.pl in your user directory. The
script that has the following features: (5 pts each)
- Opens the file /mnt/homes/CLASSES/CIS2279/LAB07/sunriseset.txt
for reading.
- From the data found in the file, creates hashes to store
several values using the date as the common key. The values
should be sunrise time and sunset time. For example, this should be
arranged so that
$sunrise{'Jan 04'} will contain the value
"0725".
- Once the hashes are created, the script will prompt the user to
enter a date to display.
- When the user has provided the date, the script will then
print out the sunrise time and the sunset time using some
descriptive text.
Answer
last updated: 05 Oct 2011 14:27