Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You have been asked to write a program that will allow the ticket agent to assig

ID: 3656600 • Letter: Y

Question

You have been asked to write a program that will allow the ticket agent to assign a seat to a particular customer. Your airline has 7 rows with 3 seats each. Row Seat 1 A B C 2 A B C 3 A B C 4 A B C 5 A B C 6 A B C 7 A B C You decide to write a program that is menu driven, Use the following menu Wingless Airlines 1. Enter Customer ID 2. Enter Requested Seat 3. Print Assigned Seats 4. Print Manifest 5. Exit Please enter option: When the program first runs, clear the screen and display the menu. If the user enters a '1' clear the screen and prompt the user for the customer

Explanation / Answer

#include #include #include #include using namespace std; //Declare function proto type int assignSeat(int seat_num, int row_num, int pass_num); int num1(char*); int num2(char*); int NumSeats = 12; void InitializeSeats(); void Reserve(); void Cancel(); void ChangeSeat(); void Display(); struct Seat { char pass_name[80]; int Available; }; struct Seat SeatArray[6][2]; int main() { char seatchioce = 0; int row_num = 6; char a = 0; char w = 0; int total_passenger = 12; char arr1[][6] = {"1A","2A","3A","4A","5A","6A"}; char arr2[][6] = {"1B","2B","3B","4B","5B","6B"}; int MenuChoice; InitializeSeats(); while(1) { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote