Question: A theater seating chart is implemented as a two-dimensional array of ticket prices as below. 10 10 10 10 10 10 10 10 10 10

 A theater seating chart is implemented as a two-dimensional array of

A theater seating chart is implemented as a two-dimensional array of ticket prices as below. 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 20 20 20 20 20 20 10 10 10 10 20 20 20 20 20 20 10 10 10 10 20 20 20 20 20 20 10 10 20 20 30 30 40 40 30 30 20 20 20 20 30 30 40 40 30 30 20 20 20 30 30 40 50 50 40 30 30 20 30 40 50 50 50 50 50 50 40 30 This array is kept in file "seat.dat". Write a complete C++ program do the following: Reads the data in the file in 10 x 10 two-dimensional array ticket. Prompts users to pick a price and find any seat with that price. Mark sold seats by changing the price to 0. If the seat is not available, display a message "SOLD OUT!". Repeat the process until you enter the input for the price. At the end of the process, write back the array into the same file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!