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 11:10
Which are not examples of chronic or persistent stress? moving
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 23.06.2019 15:20
An ou structure in your domain has one ou per department, and all the computer and user accounts are in their respective ous. you have configured several gpos defining computer and user policies and linked the gpos to the domain. a group of managers in the marketing department need different policies that differ from those of the rest of the marketing department users and computers, but you don't want to change the top-level ou structure. which of the following gpo processing features are you most likely to use? a, block inheritance b, gpo enforcement c, wmi filtering d, loopback processing
Answers: 3
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
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, 22.01.2021 01:00
Questions on the website: 13722367