Question: **Code Language is Java** **Please reply with a screenshot instead of text** Write a program to control the seating for any event, as per the

**Code Language is Java**

**Please reply with a screenshot instead of text**

**Code Language is Java** **Please reply with a screenshot instead of text**

Write a program to control the seating for any event, as per the following details: Prompt the user to input # of available seats and get it first. Then, keep admitting the groups as long as you can accommodate (keep track of available seats). When a group cannot be accommodated, output how many seats are available. Once all seats are taken, program can end. Here is the sample input & output. of available seats: 100 How many people in your party: 7 Enjoy the show! How many people in your party: 5 Enjoy the show! How many people in your party: 8 Enjoy the show! (after accommodating several more groups,) How many people in your party: 5 Sorry, only 4 seat (s) available How many people in your party: 3 Enjoy the show! How many people in your party: 2 Sorry, only 1 seat (s) available How many people in your party: 1 Enjoy the show! All seats are taken & Event admission closed. Bye

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!