question three 30 marks you are organizing a concert event in a theate
You are organizing a concert event in a theater, where the seating arrangements are
on a first come first serve basis. No reservations are allowed. The students who arrive
early get the best seats to enjoy the concert. The theater can only accommodate a
limited number of students and when it is full, no more students can be seated.
Create a class called Concert that implements this scenario using a queue data
structure. The class should have the following methods:
• addStudent(int studentID): Adds a student to the queue and assigns them a seat.
• removeStudent(): Removes the student at the front of the queue and frees up their
• getRemainingSeats(): Returns the number of remaining seats in the theater.
isTheaterFull(): Returns a boolean indicating whether the theater is full or not.
Note: You are free to make any assumptions and choose any data structure to
implement the methods as long as it follows the problem statement. (30)
*The amount will be in form of wallet points that you can redeem to pay upto 10% of the price for any assignment. **Use of solution provided by us for unfair practice like cheating will result in action from our end which may include permanent termination of the defaulter’s account.Disclaimer:The website contains certain images which are not owned by the company/ website. Such images are used for indicative purposes only and is a third-party content. All credits go to its rightful owner including its copyright owner. It is also clarified that the use of any photograph on the website including the use of any photograph of any educational institute/ university is not intended to suggest any association, relationship, or sponsorship whatsoever between the company and the said educational institute/ university. Any such use is for representative purposes only and all intellectual property rights belong to the respective owners.