Option 1 (Display Seat Chart): The program calls a function that displays the seat chart from the array seatChart using the format shown in page 1.
Option 2 (Reserve Seat): The program calls a function that prompts users for the seat desired as a string (e.g., 3A, 7D, etc.) and then determines the row number and column number of the array element that needs to be accessed. If the seat is available, it reserves it by assigning 'X' to the seat and displays a message stating that the seat was reserved. Otherwise it displays a message stating that the seat is not available.
Option 3 (Cancel Reservation): The program calls a function that prompts users for the seat to be canceled as a string (e.g., 3A, 7D, etc.) and then determines the row number and column number of the array element that needs to be accessed. If the seat is available, the program displays an error message stating that the seat to be canceled has not been initially reserved. Otherwise it makes the seat available and displays a message stating that the seat reservation has been cancelled.
PLEASE USE C++ LANGUAGE!
create each option as a sperate function and call them in a switch statement in the main
- the file being used is name chartIn.txt and the information stored in it is:
1 A X C D
2 A B C D
3 A B C D
4 A B C D
5 A X C D
6 A B C D
7 A B C D
8 A B C D
9 A B X D
10 A X X D