Question
Design a program that keeps track of ticket sales for an auditorium. A concert will be a one day event in an auditorium with three
Design a program that keeps track of ticket sales for an auditorium. A concert will be a one day event in an auditorium with three levels of seating floor, balcony, and upper balcony. There are 20 seats for each type of seating. Write a program that initializes all seats to the * (unsold) character. Allow a user to request a seat for a particular seat assignment area. Use a two-dimensional array to keep track of the ticket sales. - The first dimension indicates the type of seating: F for floor, B for balcony, and U for upper balcony. - The second dimension indicates if a seat is sold, using S for sold (remember * is unsold). The pricing schedule is as follows: - floor seats sell for $30 - balcony seats sell for $20 - upper balcony seats sell for $10 each. The program must allow input of ticket requests until an X is entered to indicate that no more sales will be made. After the close of sales, calculate - the number of tickets sold in each seating level - the sales amount sold in each seating level - the total sales amount for the entire auditorium
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started