ch1%20designExample

ch1%20designExample - 1.5 Understanding the Problem: The...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
1 1.5 Understanding the Problem: The Problem: The Lotusland Ferry Corporation requires a computerised toll collection system for its various ferry terminals. Vehicles pulling up to a tollbooth will be asked by the tollbooth agent the length of the vehicle and the number of passengers traveling. Fares are based on both these factors. A display in the tollbooth will show the amount due to the tollbooth agent, who will verbally communicate the fare to the vehicle driver. When requested and when the agent’s shift terminates, each tollbooth must report via a display inside the tollbooth, the total number of vehicles processed and the total value of all fares collected since the current tollbooth agent came on duty. The fare per passenger is currently $9.00 and the vehicle charges are $28.00 for vehicles less than 6 meters in length, $38.00 for all others. Only cash, credit cards or debit cards are accepted.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 the basic problem restated: It is required to develop and test a computer software system which will accept at the tollbooth’s keyboard the number of passengers traveling in, and the length of, a vehicle and then compute and display, onto the screen, the total cost of the fare for that vehicle. When requested and when the agent’s shift terminates, each tollbooth must report via a display inside the tollbooth, the total number of vehicles processed and the total value of all fares collected since the current tollbooth agent came on duty. Complete understanding of the problem , so that design may commence? For example, do we know if: - Vehicle driver charged as a passenger or included in the vehicle fare? - GST and PST are applicable, and to what fares? - Is vehicle length reported accurately or to the next whole meter? - Can vehicle length be reported as an imperial measure? - Are these fares applicable on all ferry routes? - Are adult and children fares identical?
Background image of page 2
3 1.6 Development of a Design: Good design L data and procedural abstraction. Strategy L top-down, piecewise refinement. Design tasks: (follow one of the numbering systems for OO design) Design Level Data Design Algorithmic Design_ High 1 (1) 2 (4) Mid 3 (2) 4 (5) Low 5 (3) 6 (6) (The following follows the number system in (~).)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 1.6.1 High-level Data Design: Step 1: Identify objects to be modeled: software system, keyboard, number of passengers, length, vehicle, screen, agent,
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 17

ch1%20designExample - 1.5 Understanding the Problem: The...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online