Question: ***C# coding language*** ***Use a multi-dimensional array*** An airline just purchased a computer for its automated reservations system. You are to write an application to

***C# coding language*** ***Use a multi-dimensional array***

An airline just purchased a computer for its automated reservations system. You are to write an application to assign seats on each flight of the airlines only plane. The plane has ten rows and each row has 2 seats (total capacity: 20 seats). The first five rows are for first class passengers, while the remaining rows are for economy passengers. The application should display: Please type 1 for First Class and Please type 2 for Economy or type 3 to see the status of all seats ('A' for available and 'X' for booked). If the user types 1, your application should assign a seat in the first-class section (rows 15). If the user types 2, your application should assign a seat in the economy section (rows 610). The application should run until the flight is full or until the user is done assigning seats. It should never assign a seat that is already taken. If the economy section is full, it should ask the user if first class is acceptable and vice versa. If yes, make the appropriate seat assignment. If no, display the message "Next flight leaves in 3 hours.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!