Computers and Technology, 30.03.2021 20:30, masonballard7266
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.
Answers: 3
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
Emulate a simple long-distance bus service reservation system.
We are dealing with a handful of rou...
English, 11.10.2021 04:30
Mathematics, 11.10.2021 04:30
Geography, 11.10.2021 04:30
Social Studies, 11.10.2021 04:30
History, 11.10.2021 04:30
Computers and Technology, 11.10.2021 04:30