Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
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

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions