Question: need help with C++ homework, can't use pointers or global variables for this assignment. Write a program that can be used to assign seats for

need help with C++ homework, can't use pointers or global variables for this assignment.

Write a program that can be used to assign seats for a commercial airline. The airplane has 13

rows, with 6 seats in each row. Rows 1-3 are first-class seats, while rows 5-13 are economy

seats.

Create a menu-driven program. Display a map of all of the seats on the airplane (display a star

(*) to indicate the seat is available; display an X if the seat is occupied). Ask the user which class

of ticket they are interested in (first-class or economy) and to select the specific seat(s) they

wish to reserve.

You must create this program by writing the following functions: initialize will fill the array with '*', displayMap will display the current seating map of the entire airplane, makeReservation will let the user select the specific seat(s) they wish to reserve, and validateFunction will make sure that a) the user is not trying to reserve seats that are already taken and b) the users seat-class choice is appropriate for thespecific seats theyve selected.

A B C D E F

Row 1 * * X * X X

Row 2 * X * X * X

Row 3 X * X X * X

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!