Question: Write a JAVA code Lab 10 TINY THEATER TICKET SALES A theater seating chart is implemented as a two-dimensional array of ticket prices like this

Write a JAVA code  Write a JAVA code Lab 10 TINY THEATER TICKET SALES A

Lab 10 TINY THEATER TICKET SALES A theater seating chart is implemented as a two-dimensional array of ticket prices like this 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 30 30 40 50 50 40 30 30 20 30 40 50 50 50 50 50 50 40 30 The bottom row is row 1 and the top row is row 9 The first seat on the left in each row is seat1 and the last seat on the right is seat 10 Write a program that allows users to pick a seat. 1. First, display the seating chart with the prices as a 9x10 table with rows numbered on the left and seats numbered on the top 2. Prompt the user to pick a seat either by entering a seat (row, seat number) or a price. 3. Mark sold seats by changing the price to 0 4. When a user specifies a seat, make sure it is available. If not, te the user it is not available and give them another chance 5. When a user specifies a price, find any seat with that price and tell the user what seat it is (by row, seat number). 6. After each seat is sold, re-display the seating chart (showing the available seats) and let the program run until all of the seats are sold. You may write this program any way you wish (all in one main class or object-oriented) Extra Credit (up to a maximum of 20 points) given for a well- designed object-oriented program As always, be sure to zip the program file and upload to Blackboard

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!