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 .

자바

프로젝트 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