Theater Seating

終了済み 投稿 5年前 着払い
終了済み 着払い

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 .

Java

プロジェクトID: #17278613

プロジェクトについて

6個の提案 リモートプロジェクト アクティブ 5年前

6人のフリーランサーが、平均₹1433 で、この仕事に入札しています。

usman1493

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

₹1300 INR 0日以内
(120件のレビュー)
6.1
superlopes

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.

₹1300 INR 1日以内
(2件のレビュー)
2.3
bharatchhajer

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.

₹1200 INR 1日以内
(2件のレビュー)
1.5