Home | How it works | Projects archive | Contact Us
Air Compressor Bot
 
The Career Path of Freelance Programming Jobs 

   Modified Barbershop Problem

Bidding Time:
27/08/2008 23:25 - 10/09/2008 23:25
Budget:
N/A
Status:
Closed

Job Type:
Java
Description:



A barbershop has a cutting room with one chair and a waiting room with five
chairs. A limitless number of customers enter the waiting room one at a time if
space is available; otherwise they go to another shop. Each time the barber
finishes a haircut, the customer must pay at the cash register; only one
customer may pay at a time, addition customers waiting to pay must wait, if the
cashier is asleep, the paying customer must wake the cashier up, after paying
the customer leaves to go to another store, if the cashier has no waiting
customers, the cashier falls asleep. A waiting customer, if there is one, enters
the cutting room and has a haircut. Customers may enter the waiting room one at
a time, or waiting customer may enter the (empty) cutting room one at a time,
but these events are mutually exclusive. If the barber discovers that the
waiting room is empty, the barber falls asleep in the waiting room. An arriving
customer, finding the barber asleep, wakes the barber and has a haircut;
otherwise the arriving customer waits. Use must use java semaphores/monitors to
coordinate the operation of the barber, clients and the cash register.
Details:
• The time cutting is random between 1 and 3 seconds
• The simulation must run for at least 2 minutes.
• Customers enter the store randomly between 1 and 3 seconds
• Cash register takes between 1 and 3 seconds cashing out a customer.
• Seconds are in whole numbers. (1,2 or 3)
Notes: Your simulation must show the following console output
• Status of the barber, clients and cashier when any changes occur.
• Number of customers at all points, at all times.
• When the barber is asleep.
• When the cashier is asleep.
• When the chairs are full.
• The number of customers waiting to pay
Deliverables
The finished project will include the following
• A single file containing design specification for this project
• Any additional Java Source code.
• The executables (class files)
• Any other source files necessary to build your system.
• A detailed README file describing the how to use application
• Design Documentation that includes at least (1) state and (2) flow diagrams,
description of all (3) classes and (4) methods, all attributes passed to the (5)
methods and (6) classes, (7) methodology, (8) problem definition.

STOPzilla! Anti-Spyware Software

Related Projects:
Php Encryption Problem
Graphic designer needed for print newsletter design
Seeking Expert Dating Ebook Marketer
3 Page Website From PSD to Drupal
Graphic Designers -

This project is the proprietary information of . Click here to remove this project from OUR database.
Operating System:
N/A
Database System:
N/A
<<< back

Recent Projects Archive:

Thursday - Wednesday - Tuesday - Monday - Sunday - Saturday - Friday

View all freelance web projects

 
Home | Projects archive | RSS | Resources | Links | Contact Us © 2004-2009 ProjectsList.biz /0.038