subject

Write a program that prompts users to pick either a seat or a price. Mark sold seats by changing the price to 0. Use overloaded methods to implement seat allocation: When a user specifies a seat (row, column), make sure it is available. When a user specifies a price, find any seat with that price. Write appropriate responses to the user if the seat is already taken, if their seat is available, or the seat number of the assigned seat if they just specified a price, etc. 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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
question
Computers and Technology, 25.06.2019 11:30
If you have a document that is relevant to more than one folder on your computer, what should you do? a. save the document to the most appropriate folder.b. save the document in each folder.c. save the document in my documents rather than in one of the folders.d. save the document to libraries.
Answers: 2
question
Computers and Technology, 26.06.2019 04:00
What text results in variable whitespace?
Answers: 1
You know the right answer?
Write a program that prompts users to pick either a seat or a price. Mark sold seats by changing the...
Questions
question
Mathematics, 13.07.2021 23:00
question
Mathematics, 13.07.2021 23:00
question
Biology, 13.07.2021 23:00