Modelling Motorway Toll Charging
Member rating: No Rating | Words: | Submitted: Thu Jul 11 2002
On the left is an image preview of every page of this document, and below are the first 150 words with formatting removed:
Computer Science 111 Third Coursework Problem Motorway Toll Charging Problem The M111 is a newly opened toll motorway, with eight junctions at which the entry and exit of vehicles from the M111 is monitored. I must design and implement a program that can read the tolls data from a file and process the information to produce a table of users for that week and a summary. Form of Data Input tollsinfo file input Gravelly L123ABC J 23 15 30 Ashton ABN1123 J 11 0 56 . . . . . . . . . . . . . . . . . . . . . . . . Fratton L123ABC L 1 12 31 Form of Data Output (Results) Registration trips in wk tolls due speeding violations total due Number serious dangerous _______________________________________________________________ L123ABC 7 11.76 1 0 31.76 ***********************Summary*********************** Total revenue for week was £1129.23 Total number of different users was 24 Total number of peak journeys was 45 Total off...


