Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

A theatre seating chart is implemented as a two-dimensional array of ticket prices, like this: AISLE ROW 1 2 3 4 5 6 7 8

A theatre seating chart is implemented as a two-dimensional array of ticket prices, like this:

            AISLE

ROW    1        2         3         4         5         6         7         8         9          10

--------------------------------------------------------------------------------------------------------------

10        10        10        10        10        10        10        10        10        10        10

9         10        10        10        10        10        10        10        10        10        10

8         10        10        10        10        10        10        10        10        10        10

7         10        10        20        20        20        20        20        20        10        10

6         10        10        20        20        20        20        20        20        10        10

5         10        10        20        20        20        20        20        20        10        10

4         20        20        30        30        40        40        30        30        20        20

3         20        30        30        40        50        50        40        30        30        20

2         30        40        50        50        50        50        50        50        40        30

1         30        40        50        50        50        50        50        50        40        30


Write a program that prompts users to pick either a seat or a price. Mark sold seats by changing the price to 0. When a user specifies a seat, make sure it is available. When a user specifies a price, find any seat with that price starting at the front and working to the back of the theatre. Make sure you write your program using well defined functions.

You are to hand in:

Source code (well documented)

Input file (if used)

Sample tests for valid and invalid choices

Hierarchy Chart

User Guide

Step by Step Solution

3.53 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

Code include using namespace std void printMenu Function for print Menu cout Choose Option cout c Choose Seat Number cout a See Available Seats for sp... 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_2

Step: 3

blur-text-image_3

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

Statistics The Art And Science Of Learning From Data

Authors: Alan Agresti, Christine A. Franklin, Bernhard Klingenberg

4th Edition

133860825, 321997832, 133860914, 978-0321997838

More Books

Students explore these related Accounting questions