Theater Seating
₹600-1500 INR
Paid on delivery
Problem 2: Theatre Seating
You run a small theater and each month, you have patrons mail in requests for pre-sale tickets. You need to process these ticket requests and either tell them where their party will sit or explain to the patron why you can't complete their order.
You have a few rules that you need to follow when you fill the orders
Fill as many orders as possible
Put parties as close to the front as possible.
If there are not enough seats available in the theater to handle a party, tell them "Sorry, we can't handle your party."
Each party must sit in a single row in a single section. If they won't fit, tell them "Call to split party".
Your program must parse a theater layout and a list of ticket requests and produce a list of tickets or explanations in the same order as the requests.
The theater layout is made up of 1 or more rows. Each row is made up of 1 or more sections separated by a space.
After the theater layout, there is one empty line, followed by 1 or more theater requests. The theater request is made up of a name followed by a space and the number of requested tickets.
Sample input:
6 6
3 5 5 3
4 6 6 4
2 8 8 2
6 6
Smith 2
Jones 5
Davis 6
Wilson 100
Johnson 3
Williams 4
Brown 8
Miller 12
Your program must produce results to standard output in the same order as the requests, with the name of the person who requested the ticket and either the row and section of the ticket or the explanations "Sorry, we can't handle your party" or "Call to split party."
*****************************
The code for this project already exists in the open.i want functioning code immediately in object oriented fashion .
Project ID: #17278613
About the project
6 freelancers are bidding on average ₹1433 for this job
Hey A Java expert developer is here I have good advanced expertise in Java and Javafx I can write an object oriented program for you as per your need This is an initial bid Feel free to message me Regards
Hi, I already did that exercice and i have the code ready right now. I have used Java 8 to do that exercice. Let me know if you have any question. Thanks, Pedro Lopes.
I would be creating the code from scratch in a day, so will be functional and match your requirement. I have over 11 years of working experience in IT field using Java, JEE and web technologies.