Question: 1. A theater seating chart is implemented as a two-dimensional array of ticket prices, like this: Seat Ticket Price 10 10 10 10 10 10

 1. A theater seating chart is implemented as a two-dimensional array
of ticket prices, like this: Seat Ticket Price 10 10 10 10

1. A theater seating chart is implemented as a two-dimensional array of ticket prices, like this: Seat Ticket Price 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 40 50 50 50 50 50 50 40 20 80 50 50 80 80 80 80 50 50 30 Seating Arrangement 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Write a program that prompts the user to pick a price. When a user specifies a price, make sure it is available. Mark sold seats by changing the price to 0. You will write at least 3 methods. One method that reads, validates and returns the price. . The other that checks whether a seat is available that price. . The third method prints a confirmation if the seat is available or prints a message saying "A seat at this price is not available. Good Bye." Hint: Basically, you will search the 2D array for the input price, and as soon as you find a matching price, you will replace the price at that location with a 0. Sample output 1: Please pick a price or press Q to quit: 80 Your seat is confirmed! Your seat number is 81 Enjoy your movie Please pick a price or press Q to quit: 80 No seat at this price is available. Sorry

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!