CIS 2279 Homework Assignment #07
Due Sunday, Oct 19,
2008
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:
- Opens the file /mnt/homes/CLASSES/CIS2279/LAB07/stations.dat
for reading.
- From the data found in stations.dat, creates hashes to store
several values using the three letter
station ID as the common key. The values should be location
(lat,lon), common name, zone and elevation. For example, this should be
arranged so that
$zone{'BTV'} will contain the value
"VT005".
- Once the hashes are created, the script will list the
available stations and prompt the user to
enter a station ID to display.
- When the user has provided a station ID, the script will then
print out the information about that station (common name,
location, elevation and zone) with some descriptive text.
Answer
last updated: 14 Oct 2008 20:54