Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design a program in c++ that keeps track of ticket sales for an auditorium. A concert will be performed over three days in an auditorium

Design a program in c++ that keeps track of ticket sales for an auditorium. A concert will be performed over three days in an auditorium with three levels of seatingfloor, balcony, and upper balcony. There are 20 seats for each type of seating. Write a program that initializes all seats to the * character. Allow a user to request a seat for a particular seat assignment area on a specific day. Use a three-dimensional array to keep track of the ticket sales. The first dimension indicates the performance day: T for Thursday, F for Friday, and S for Saturday. The second dimension indicates the type of seating: F for floor, B for balcony, and U for upper balcony. The third dimension indicates if a seat is sold, using S for sold. The floor seats sell for $30, the balcony seats sell for $20, and the 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 amount of ticket sales for each performance for each day. Calculate the number of each type of seat sold for each day. Calculate the sales amount for each performance for each day. Calculate the total number of seats sold for all performances. Write your design in the following space. Your design should be a list of C++ comments without any code.

output file example

image text in transcribed

image text in transcribed

The following is a copy of the screen results that might display after running your program, depending on the data entered. The input entered by the user is shown in bold This program keeps track of ticket sales for arn auditorium. Tickets are available for three days-- Thursday, Friday, and Saturday--Eor 20 seats in each of three levels: the Eloor, balcony, and upper balcony Enter day, (T)hursday, E) riday, S)aturday Eor concert, (X) elosed Enter level, (E) Loor, (B)alcony, (U)pper Balcony TF Enter day, (T) hursday, F)riday, (S)aturday Eor concert, (X) elosed Enter level, (E) Loor, (B)alcony, (U)pper Balcony TF Enter day, (T) hursday, F)riday, (S)aturday Eor concert, (X) elosed Enter level, (E) Loor, (B)alcony, (U)pper Balcony FU Enter day, (T)hursday, E) riday, S)aturday Eor concert, (X) elosed Enter level, (E) Loor, (B)alcony, (U)pper Balcony FU Enter day, (T) hursday, F)riday, (S)aturday Eor concert, (X) elosed Enter level, (E) Loor, (B)alcony, (U)pper Balcony FU Enter day, (T) hursday, F)riday, (S)aturday Eor concert, (X) elosed Enter level, (E) Loor, (B)alcony, (U)pper Balcony SB Enter day, (T)hursday, E) riday, S)aturday Eor concert, (X) elosed Enter level, (E) Loor, (B)alcony, (U)pper Balcony SB Enter day, (T) hursday, F)riday, (S)aturday Eor concert, (X) elosed Enter level, (E) Loor, (B)alcony, (U)pper Balcony SB

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

More Books

Students also viewed these Databases questions

Question

4. Who would lead the group?

Answered: 1 week ago

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago