CIS 2279 Homework Assignment #07
Due Monday, Oct 17,
2016
p
- Create a perl script named lab07.pl. 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 a date string 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 loop prompting the user to
enter a date to display until "q" is entered.
- Each time the user has provided a date, the script will then
print out the sunrise time and the sunset time for that date using some
descriptive text.
Answer
last updated: 13 Oct 2016 19:44