Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

What is the best conclusion for Xbar Chart? UCL A X B C B A LCL

Answered: 1 week ago