Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need help creating an a ray and exceptions in c# that will Emulate a simple long-distance bus service reservation system. We are dealing with

i need help creating an a ray and exceptions in c# that will 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. This data is all made up.

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.

need help Creating a unit tests instead of a demo app. that will run a test

Create collections or lists of relevant objects. Bus Company has Routes Routes have Buses Buses have Seats with each seat having a status (occupied or free) Customer has at least payment information. TicketPurchase can be a method in a separate Transactions object, where you pass Route or Bus and Customer payment information. You can emulate exceptions by setting flags in the Transactions objects.

I don't understand what information you are talking about

you say you need more info like what this is my class assignment this is all the information that the professor gave

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago