Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Handling Two Dimensional Arrays, Nested Loops, and Requirments in C++ Project #2-Handling Two Dimensional Arrays, Nested Loops, and Requirements Theater Seat Selection Program - Write

Handling Two Dimensional Arrays, Nested Loops, and Requirments in C++

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Project #2-Handling Two Dimensional Arrays, Nested Loops, and Requirements Theater Seat Selection Program - Write a program using a 2 dimensional array that enables users to select a theater seat based on price, location, and availability Project Requirements: Write a looping program for Theater Seating selection The program will display the theater seating (shown later) and prompt the user to select a seat to purchase using the row number and column number If the seat is not available (has already been sold), your program should re-displajy the theater seating and tell the user that the seat (row and column) they selected is not available, and then prompt for another selection. When an available seat is sold: 1. 2. 3. 4. The seat will be indicated in the display with an "X". Output "Thank you for choosing seat # row: r, column: c " Output "Your ticket price is $price The program will pause for about 2 seconds, clear the screen, and then continue, and re-prompt for seat selection. If all seats are sold, the program will announce that the theater is sold out, display the theater (it will be all X's), and end. The program must use functions for the following operations (at a minimum) Display theater seating - void Check to see if the seat is available -void or bool Check to see if the theater is sold out - bool The program must validate User input "ATTENTION: THE SEAT SELECTED, Row "

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

Students also viewed these Databases questions