Write a program that maintains a seating chart. There are 6 rows and 3 columns. Set up a 2 dimensioned array to hold the names of the people assigned seats. Put underscores in empty seats. The program will be menu driven with the ability to add someone to the seating chart, delete someone from the seating chart, display the seating chart and quit the program. If you are adding someone to the seating chart, prompt from the person's name and row and column numbers. Verify that they are within the correct range. If there is already someone assigned to that seat, display an error message; otherwise, add the person's name to the seat and display a confirmation message. If you are deleting someone from a seat, prompt for the row and column numbers. Verify that they are within the correct range. If there is no one assigned to that seat, display an error message; otherwise, remove the person's name from the seat and display a confirmation message. If the user doesn't enter a valid menu option, display an error message. Use the following functions in your program: DisplayMenu, AddPerson, DeletePerson and DisplaySeatingChart.
Output from Program:
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 3
S E A T I N G C H A R T
____________________ ____________________ ____________________
____________________ ____________________ ____________________
____________________ ____________________ ____________________
____________________ ____________________ ____________________
____________________ ____________________ ____________________
____________________ ____________________ ____________________
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 1
Enter person's name: Backus, Daryl
Enter row: 3
Enter column: 3
Backus, Daryl was added to the seating chart.
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 1
Enter person's name: Evans, Joshua
Enter row: 1
Enter column: 2
Evans, Joshua was added to the seating chart.
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 1
Enter person's name: Jackson, Joseph
Enter row: 5
Enter column: 3
Jackson, Joseph was added to the seating chart.
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 1
Enter person's name: Merchant, Taylor
Enter row: 4
Enter column: 2
Merchant, Taylor was added to the seating chart.
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 3
S E A T I N G C H A R T
____________________ Evans, Joshua ____________________
____________________ ____________________ ____________________
____________________ ____________________ Backus, Daryl
____________________ Merchant, Taylor ____________________
____________________ ____________________ Jackson, Joseph
____________________ ____________________ ____________________
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 1
Enter person's name: Pace, Bryce
Enter row: 2
Enter column: 1
Pace, Bryce was added to the seating chart.
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 1
Enter person's name: Rollins, Casey
Enter row: 8
Invalid row - please re-enter
Enter row: 0
Invalid row - please re-enter
Enter row: 2
Enter column: 0
Invalid column - please re-enter
Enter column: 9
Invalid column - please re-enter
Enter column: 1
Someone is already in that seat.
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 3
S E A T I N G C H A R T
____________________ Evans, Joshua ____________________
Pace, Bryce ____________________ ____________________
____________________ ____________________ Backus, Daryl
____________________ Merchant, Taylor ____________________
____________________ ____________________ Jackson, Joseph
____________________ ____________________ ____________________
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 2
Enter row: 12
Invalid row - please re-enter
Enter row: 3
Enter column: 5
Invalid column - please re-enter
Enter column: 1
No one was assigned that seat.
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 2
Enter row: 1
Enter column: 2
Evans, Joshua was removed from the seat.
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: 3
S E A T I N G C H A R T
____________________ ____________________ ____________________
Pace, Bryce ____________________ ____________________
____________________ ____________________ Backus, Daryl
____________________ Merchant, Taylor ____________________
____________________ ____________________ Jackson, Joseph
____________________ ____________________ ____________________
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: d
Invalid Menu Option
SEATING CHART MENU
1 - Add Person to Chart
2 - Delete Person from Chart
3 - Display Seating Chart
Q - Quit
Enter Choice: q
Press any key to continue . . .
50 FG for anyone who does this for me.