Find Jobs
Hire Freelancers

Java Burrito

$30-250 USD

Completed
Posted over 15 years ago

$30-250 USD

Paid on delivery
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.
Project ID: 386815

About the project

10 proposals
Remote project
Active 15 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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.
$150 USD in 7 days
5.0 (3 reviews)
3.4
3.4
10 freelancers are bidding on average $149 USD for this job
User Avatar
6+ years Java experience. Can use semaphores class. Quality work guaranteed.
$250 USD in 20 days
4.8 (441 reviews)
7.4
7.4
User Avatar
we r a group of programmers. we already have done similar projects in our undergraduate courses. so we r confident with the bid.
$75 USD in 3 days
4.9 (58 reviews)
6.2
6.2
User Avatar
Hi, Please see PM, regards
$95 USD in 3 days
4.9 (59 reviews)
4.9
4.9
User Avatar
Hi, please see PM. Thanks.
$97 USD in 2 days
5.0 (9 reviews)
3.7
3.7
User Avatar
It's easy and you just leave it to me. I will give a good result in 3 days.
$100 USD in 3 days
5.0 (3 reviews)
2.9
2.9
User Avatar
much experience in concurrency
$250 USD in 0 day
5.0 (1 review)
2.8
2.8
User Avatar
Hello plz check PMB. Thanks
$100 USD in 3 days
5.0 (2 reviews)
1.2
1.2
User Avatar
pls see the PMB...
$220 USD in 2 days
0.0 (4 reviews)
0.0
0.0
User Avatar
pls give us opportunity
$150 USD in 30 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Margate, United States
3.2
7
Member since Feb 15, 2009

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.