Project Detail

Java Burrito  

Java Burrito is project number 386815
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: gbalachander

Budget: $30-250

Created: 02/15/2009 at 17:53 EST

Bid Count: 11

Average Bid:
$ 147

02/18/2009 at 17:53 EST

Project Creator: stallion5000
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (5 reviews)

Bid On This Project
 

Description

For this problem you must use Java’s semaphore class. Your implementation for this
problem must only use the semaphore methods to control the concurrency of your solution
(IE. acquire and release).

Consider a small take-out food place called Burrito Brothers. This very popular
establishment offers a VERY-TASTY burrito (assume the burrito ingredients are infinite.)
There are three servers that own a private beef area, a cheese area, and a tortilla area (IE.
Each server has their own ingredients in an infinite supply). Additionally there are three
shared counter locations, a shared cash register and a shared waiting area that can
accommodate up to 15 customers. By law the shop has a maximum customer capacity of
15.

A customer cannot enter the shop if it is filled to capacity. If the there is room a customer
will gain access to the shop. Each customer will enter the shop with an order of one to 20
burritos. As soon as a server is free, the customer that has the shortest order is served
next.

A server is either servicing a customer or waiting. Each server will make (at most) three
burritos at time for a given customer. Once a server has obtained all ingredients, a burrito
can be made. When a customer’s entire order is finished, the customer pays a cashier and
leaves the shop. Since there is only one cash register, only one patron may pay at a time.
However, in the event that a customer’s entire order has not been filled by the server at the
completion of the current counter visit the customer must reenter the waiting area. The
waiting area is organized by the shortest order next.

Implement a solution to this problem as a Java application using the Java semaphore class
for synchronization. Do not turn in you final application as a package or jar. Your zip file
must expand into a single directory and your application must compile at the command
prompt using javac *.java. Output must include the arrival of each customer and each state
transition: leaving full shop, entering shop with an order of m burritos, customer standing,
getting service from server n, paying, and leaving. Each customer is represented by a
corresponding thread and each server in your implementation is also represented by a unique Java thread. All customers and servers exist within a single application.

The finished assignment must include the following (submitted to WebCT as a ZIP file that
extracts to a single level directory for this problem and does not include your files as a
package or jar):
A detailed design document fully describing your work The Java Burrito Brothers Implementation
o The Java Source Code
o Class files
o The system must compile using the command: javac *.java. The system
must run using the command: java Burrito.
o Output from a run of your application.


Additional files submitted:
Java Burrito.doc

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

150

7 days

02-15-2009 21:24 EST

Hello, I have done lot of java projects and can easily do this project using semaphores. I had thoroughly read the project description and can create a java program exactly in accordance to the description. Thanks.

help

 

97

2 days

02-16-2009 02:07 EST

Hi, please see PM. Thanks.

help

 

95

3 days

02-16-2009 02:34 EST

Hi, Please see PM, regards

help

 

100

3 days

02-15-2009 23:22 EST

Hello plz check PMB. Thanks

help

 

125

3 days

02-15-2009 22:55 EST

The Java program would be developed using the semaphore class for synchronization.

help

 

250

20 days

02-16-2009 01:48 EST

6+ years Java experience. Can use semaphores class. Quality work guaranteed.

help

mxq

 

100

3 days

02-16-2009 02:42 EST

It's easy and you just leave it to me. I will give a good result in 3 days.

help

 

250

0 days

02-16-2009 04:55 EST

much experience in concurrency

help

 

220

2 days

02-15-2009 20:57 EST

(No Feedback Yet)

pls see the PMB...

help

 

150

30 days

02-15-2009 23:14 EST

(No Feedback Yet)

pls give us opportunity

help

 

75

3 days

02-16-2009 01:18 EST

(No Feedback Yet)

we r a group of programmers. we already have done similar projects in our undergraduate courses. so we r confident with the bid.

help


    Bid on this Project