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 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. P7.8 should loop using a menu until the user selects quit. It should display the current state of the seats in the theater before prompting the user for 1) Select a seat or 2) Select by Price or 3) Quit Make certain to document your code using the JavaDoc format.
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
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.
P7.8 should loop using a menu until the user selects quit. It should display the current state of the seats in the theater before prompting the user for
1) Select a seat or
2) Select by Price or
3) Quit
Make certain to document your code using the JavaDoc format.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images