The Honolulu Board of Water Supply is developing a new system to automate the reading of residential water meters using Oceanic Cable's fiber-optic network on the island of O`ahu. The new digital meters measure water consumed in each household by incrementing a counter for each gallon of water used. Each hour, the controller stores the counter in memory (without resetting it). Every night at midnight the controller sends a file consisting of a time stamp and the counter reading for each hour of the day to the BWS computer over the fiber. A sample of the file is in day1.
You have been hired as an intern and asked to write a program to process these files. The program should read the data file and compute the water usage for each hour of the day, the average hourly usage for the day, and the time of the highest hourly usage.