A program that keeps track of ticket sales for an auditorium

Assignment Help Basic Computer Science
Reference no: EM13163460

Design a program that keeps track of ticket sales for an auditorium. A concert will be performed over three days 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 '*' 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.

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.

Sample Run:

 

This program keeps track of ticket sales for an auditorium. Tickets are available for three

days--Thursday, Friday, and Saturday--for 20 seats in each of three levels: the floor, balcony,

and upper balcony.

 

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

TF

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

TF

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

FU

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

FU

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

FU

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

SB

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

SB

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

SB

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

FB

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

FB

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

TB

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

TB

Enter day, (T)hursday, (F)riday, (S)aturday for concert, (X)closed

Enter level, (F)loor, (B)alcony, (U)pper Balcony

x

Thursday Floor Tickets sold : 2 $60

Balcony Tickets sold : 2 $40

Upper Balcony Tickets sold : 0 $0  

Friday Floor Tickets sold : 0 $0

Balcony Tickets sold : 2 $40

Upper Balcony Tickets sold : 3 $30

Saturday Floor Tickets sold : 0 $0

Balcony Tickets sold : 3 $60

Upper Balcony Tickets sold : 0 $0  

Total Floor tickets sold for all concerts : 2 $60

Total Balcony tickets sold for all concerts : 7 $140

Total Upper Balcony tickets sold for all concerts : 3 $30

Total tickets sold for all concerts : 12 $230

Total tickets sold for Thursday concerts : 4 $100

Total tickets sold for Friday concerts : 5 $70

Total tickets sold for Saturday concerts : 3 $60

 

 

Reference no: EM13163460

Questions Cloud

Find all irreducible polynomials : Find all irreducible polynomials1. of degree 3 over GF(2),2. of degree 4 over GF(2).
State responsibility and environmental regulation : What are three jurisdiction -what can they make a state do? Do they have any power over a company?
What mass of indium is present : A sample of indium sulfate, In2(SO4)3, contains 0.0446 moles of oxygen. What mass of indium is present?
What was the initial concentration : A zero-order reaction has a constant rate of 2.90×10-4 M/rm s. If after 65.0 seconds the concentration has dropped to 9.00×10-2 M, what was the initial concentration.
A program that keeps track of ticket sales for an auditorium : Design a program that keeps track of ticket sales for an auditorium. A concert will be performed over three days in an auditorium with three levels of seating floor, balcony, and upper balcony. There are 20 seats for each type of seating. Write a pro..
What would be the final pressure : A gas is heated from 268 K to 290 K while its volume is increased from 25.0 L to 37.0 L by moving a large piston within a cylinder. If the original pressure was 0.90 atm, what would be the final pressure?
What is the molar mass of the metal : In this experiment a hot metal block at 100oC is added to cold water in a calorimeter. The heat lost by the metal block equals the heat gained by the water and the two end up at the same temperature.
The irreducible polynomial is the one used : Compute in  GF (28): ( x 4+ x +1) / ( x 7+ x 6+ x 3+ x 2) , where the irreducible polynomial is the one used by AES, P ( x )= x 8+ x 4+ x 3+ x +1.
Draw the diagram for this claw-back provision : Draw the diagram for this claw-back provision and what kind of option is it?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Define business performance management

Define Business Performance Management and how DSS relates the Business Performance Management and Describe how Knowledge Management benefits organizations.

  Explaining visible and consistent management support

Illustrate visible and consistent management support. Establish privacy responsibilities. Privacy needs need to be incorporated into any position which handles personally identifiable information (PII).

  Explain findings after conducting search for .cde files

You work for mid-sized corporation known for its inventions which does a lot of copyright and patent work. Explain your findings after conducting Internet search for .cde files.

  Explain computer software required to make computers work

Develop 5- to 7-slide PowerPoint presentation, providing the overview of how computers are used. Distinguish various kinds of computer software required to make computers work.

  Discuss some options for mobile wireless

Please discuss some options for mobile wireless internet connection, and describe the types of hardware that would be involved in making such a connection

  Compute cpi of processor with given workload

Assume that there are no other hazards that require stalling. Compute the CPI of the above processor with the given workload.

  Professional interactive media developers

DIGIMAX Multimedia is a multimedia content development company would like to release various educational CD/DVD in the market. In this regards, the company wants to approach professional interactive media developers

  How pms allot preservation treatment to candidate project

1. Does PMS allot preservation treatment to candidate project? 2. If answer to question 1 is Yes or Under Development, which groups of treatments does PMS cover?

  Compute probability distribution and conditional probability

Write down solution this question in cryptographic. Assume encryption function is defined compute probability distribution and conditional probability distribution.

  Explain how versatility of excel affect application support

How does versatility of Excel affect application support? As its versatility, what assumptions should be made when diagnosing and troubleshooting Excel-based problems?

  How can laser be tipped before light no longer continues

If a laser is to be pointed into the end of the fibre, but is "tipped" to one side by θ degrees, how much can the laser be "tipped" before the light no longer continues down the fibre?

  Information culture have negative impact on apple-s business

Which of the given information cultures would have the greatest negative impact on Apple's business? Information-functional culture, Information-sharing culture.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd