use c++ to Write a class ReservationSystem to develop a seat reservation system for your airline. Consider the following airline seating pattern:
use c++ to Write a class ReservationSystem to develop a seat reservation system for your airline.
Consider the following airline seating pattern:
A 1 2 3 4 5 6 7 8 9 10
B 1 2 3 4 5 6 7 8 9 10
AILE
C 1 2 3 4 5 6 7 8 9 10
D 1 2 3 4 5 6 7 8 9 10
Either use 2D STL array (array that contains array) or 4 single dimensional STL arrays of size 10. Write a program to display a menu to the user with the options to reserve a seat of choice, reserve a window seat, reserve an aisle seat, reserve a seat (any available), withdraw reservation, update reservation (change seat) and display available seats.
Display available seats after each selection. For example if user reserves seat 5 in the row A, it should display:
A 1 2 3 4 X 6 7 8 9 10
B 1 2 3 4 5 6 7 8 9 10
AISLE
C 1 2 3 4 5 6 7 8 9 10
D 1 2 3 4 5 6 7 8 9 10
In case seats are not available, display appropriate messages.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images