subject

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
You know the right answer?
Emulate a simple long-distance bus service reservation system. We are dealing with a handful of rou...
Questions
question
Mathematics, 02.12.2020 07:10
question
Mathematics, 02.12.2020 07:10
Questions on the website: 13722367