Computers and Technology

Emulate a simple long-distance bus service reservation system. We are dealing with a handful of routes each with a number of daily running
buses, each with a specified number of seats.
Each customer that buys a ticket will get an assigned seat.
Invalid reservation will result in an exception.
Here is a possible list
counter is closed,
seats are not available,
service is cancelled,
insufficient funds to purchase,
payment gateway is not responding.
Create collections or lists of relevant objects.
Think of possible objects based on these facts:
Bus Company has Routes
Routes have Buses
Buses have Seats with each seat having a status (occupied or free)
Customer should provide the name and payment information.
Create a demo app.
Implement TicketPurchase as a method in a Transactions object. Pass Route and Customer payment information.
You can emulate exceptions by setting flags in the Transactions objects.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 01:30, jadaroyval
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
image
Computers and Technology, 24.06.2019 02:00, sameh0425
Which steps will open the system so that you can enter a question and do a search for
Answers: 1
image
Computers and Technology, 24.06.2019 07:00, sudotoxic
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
image
Computers and Technology, 25.06.2019 09:00, pacetys
Which element of a presentation program’s interface displays the slide you are currently creating or editing? a. slide pane b. tool bar c. menu bar d. scroll bar
Answers: 1
Do you know the correct answer?
Emulate a simple long-distance bus service reservation system. We are dealing with a handful of rou...

Questions in other subjects:

Konu
English, 11.10.2021 04:30
Konu
Mathematics, 11.10.2021 04:30
Konu
History, 11.10.2021 04:30