Write a program that can be used by a cinema to sell tickets for movies. The cinema has 2 auditoriums of different sizes; the one has 15 rows of seats, with 30 seats in each row, inclusive of 1 executive row at the back which seats couples. The other has 10 rows of seats, with 20 seats in each row. The program should display a screen that shows which seats are available and which are taken. For example, the following screen shows a chart depicting each seat in the cinema. Seats that are taken are represented by an * symbol, and seats that are available are represented by a # symbol:
Seats
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Row 1 * * * # # # * * * * * * * # # # # * * #
Row 2 # # # # # # # # * * * * # # # # * * * *
:
Row 10# # # # # # # # # # # # # # # # # # # #
Here is a list of tasks this program must perform:
· When the program begins, it should ask the user to enter their name, the choice of auditorium, then the seat prices for each row. The prices can be stored in a separate array. (Alternatively, the prices may be read from a file.) Assume seat prices of each auditorium and each row is different.
· Once the prices are entered, the program should display a seating chart similar to the one shown above. The user may enter the number of tickets, the row and seat number for tickets being sold. Every time a ticket or group of tickets is purchased, the program should display the total ticket prices and update the seating chart. If a user purchased more than 10 tickets, then a 5% discount of the total amount is given. Your program should be smart enough to tell users whether seats purchased has someone else seated next to them (either left or right) or seated at their back or at the front.
· The program should keep a total of all ticket sales. The user should be given an option of viewing this amount.
· The program should also give the user an option to see a list of how many seats have been sold, how many seats are available in each row, and how many seats are available in both auditorium.
Input validation: When tickets are being sold, do not accept row or seat numbers that do not exist. When someone requests a particular seat, the program should make sure that seat is available before it is sold. Executive row must be sold as couple seat (2 seats)