Find Jobs
Hire Freelancers

Theatre Sitting

$10-30 USD

Tamamlandı
İlan edilme: yaklaşık 6 yıl önce

$10-30 USD

Teslimde ödenir
submit “production-quality” code that could be ran, maintained and evolved. Code should exhibit loose coupling, a high degree of encapsulation with cyclomatic complexity distributed relatively evenly. 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: 1. Fill as many orders as possible 2. Put parties as close to the front as possible. 3. If there are not enough seats available in the theater to handle a party, tell them "Sorry, we can't handle your party." 4. 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." Sample output: ``` Smith Row 1 Section 1 Jones Row 2 Section 2 Davis Row 1 Section 2 Wilson Sorry, we can't handle your party. Johnson Row 2 Section 1 Williams Row 1 Section 1 Brown Row 4 Section 2 Miller Call to split party.
Proje No: 16604527

Proje hakkında

5 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 6 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
Seçilen:
Kullanıcı Avatarı
Hey..Thanks for posting this project. I will be able to do this. Would like to give a try. Let's start and make this done for you !!
$30 USD 1 gün içinde
5,0 (5 değerlendirme)
0,0
0,0
5 freelancer bu proje için ortalama $26 USD teklif veriyor
Kullanıcı Avatarı
Hello sir. I have good expertise in java and i'm interested in your project. Feel free to contact me. Thanks
$30 USD 1 gün içinde
5,0 (5 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
A proposal has not yet been provided
$10 USD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
18 years Java experience. Graduated from Computer Science in top 10.
$30 USD 3 gün içinde
0,0 (0 değerlendirme)
0,0
0,0

Müşteri hakkında

   INDIA bayrağı
Panaji, India
5,0
2
Ödeme yöntemi onaylandı
Ağu 14, 2008 tarihinden bu yana üye

Müşteri Doğrulaması

Bu müşterinin diğer işleri

Traffic Light Design -
$30-250 USD
Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.