A small airline has just purchased a computer for its new automated reservations system. You have been asked to program the new system. You are to write a program toassign seats on each flight of the...

A small airline has just purchased a computer for its new automated reservations system. You have been asked to program the new system. You are to write a program toassign seats on each flight of the airline’s only plane (capacity:10 seats).Your program should display a menu of alternative indicating the values 1 for first class and 2 for economy. If the user types 1, your program should assign a seat inthe first class section (seats 1-5). If the user types 2, your program should assign a seat in the economy section (seats 6-10). The program should display a messageindicating the user’s seat number and whether it is in the first class or economy section of the plane. Your program should, of course, never assign a seat that hasalready been assigned. When the first class section is full, your program should ask the user if it is acceptable to be placed in the economy section (and vice versa).If yes, then make the appropriate seat assignment. If no, then display the message, "Next flight leaves in 3 hours."(Please use Microsoft Visual Studio, C++)
Nov 11, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here