Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MAKE SURE YOU TEST THE PROGRAM FISRT. DON'T PUT THE CODE WITHOUT TESTING. MAKE SURE ALL THE STEPS ARE FOLLOWED IN CORRECT MANNER ONLY USE

MAKE SURE YOU TEST THE PROGRAM FISRT. DON'T PUT THE CODE WITHOUT TESTING.

MAKE SURE ALL THE STEPS ARE FOLLOWED IN CORRECT MANNER

ONLY USE VISUAL STUDIO C# CONSOLE APPLICATION

Use File IO

(NO JAVA CODING)

Create a C# Console program that will demonstrate the use of File IO, Arrays, and Classes.

This assignment has a number of requirements. Carefully read the document and note all the requirements. Also keep in mind that many of the requirements for this assignment are module; that is if one requirement is not implemented, it will not affect another. For example, you can implement adding a seat without having removing a seat working. You can reserve and unreserve seats without having saving and loading working. To maximize your mark, try to complete as many requirements as possible, do not get stuck on one requirement and spend all of your time trying to get it to work at the neglect of other requirements.

Write a program that functions as a concert/restaurant/airplane/etc. reservation system. This system must be sufficiently complex, with a minimum of 4 rows with 4 seats in each row. You must display the seats on the screen in some manner and indicate which are available and which are taken, it is up to you to decide how to do this. You may display the seating in any display format that you feel is appropriate as long as it logically conveys the information to the user. [4 Marks]

Example seating chart:

*Seat 1-1*Seat 1-2*Seat 1-3*Seat 1-4*

*Seat 2-1*Seat 2-2*Seat 2-3*Seat 2-4*

*Seat 3-1*Seat 3-2*Seat 3-3*Seat 3-4*

*Seat 4-1*Seat 4-2*Seat 4-3*Seat 4-4*

Allow the user the following options:Add a customer to the seating plan [8 Marks]

Request the customer's name

Display a list of the seats in the venue

If seats are available, let the customer choose a seat. Add the customer to the seating chart on the application.

For example, after adding a customer the seating chart would become:

************************************* *Seat 1-1*Seat 1-2*Seat 1-3*S. Claus*

*Seat 2-1*Seat 2-2*Seat 2-3*Seat 2-4*

*Seat 3-1*Seat 3-2*Seat 3-3*Seat 3-4*

*Seat 4-1*Seat 4-2*Seat 4-3*Seat 4-4*

*************************************

If no seats are available, inform the user

Remove a customer from the seating plan [4 Marks]

Request the customer's name or seat number

Search the seating chart for the customer's name or seat number and delete it

Your system should show validation whenever appropriate, and function in a logical manner. For example, the system should not shut down after each operation, if a user has to fix an entry the system should not start over, etc. [5 Marks]

Your system should also have File IO such that the reserved seats with who reserved them is not lost when your program shuts down.

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions

Question

Question What are the advantages of a written bonus plan?

Answered: 1 week ago