Results 1 to 4 of 4
Thread: Queues
- 12-22-2009, 05:42 PM #1
Member
- Join Date
- Dec 2008
- Posts
- 17
- Rep Power
- 0
- 12-22-2009, 06:25 PM #2
Senior Member
- Join Date
- Dec 2009
- Posts
- 104
- Rep Power
- 0
could you please post your code, i don't like downloading files from strangers
- 12-22-2009, 06:51 PM #3
Member
- Join Date
- Dec 2008
- Posts
- 17
- Rep Power
- 0
hmmmm
I didn't write any code yet.. because i didn't get the idea !!
the file is a simple PDF file :) and I'm a MAC user, so there's no reason to worry :):)
- 12-23-2009, 10:00 PM #4
Member
- Join Date
- Dec 2008
- Posts
- 17
- Rep Power
- 0
this is the problem :
In this project, you are required to develop a simulator that simulates a sequence of customers arriving in a departmental store and calculates the average waiting time. There are a number of counter queues in the departmental store. Each customer after picking the items, arrives for service, enters a queue, waits for some time, gets service for payment and leaves. The simulator tracks the time the customers spend waiting in queues and outputs the average waiting time.
Assume that :
- the time is measured in minutes and the departmental starts the clock with 0 minute and its finish time is MAX (in minutes).
- arrival time and service time of each customer is provided to the simulator
- number N of service queues is also provided to the simulator
Note:
- Arrival time means the time when the customer joins a counter queue
- Finish time means the time when he leaves the counter
- Service time means the time when he deals with the salesperson at the counter
- Waiting time = Finish time – Arrival Time – Service Time
- You can generate the arrival time and service times randomly (using Java’s random class) as follows:
- Randomly generate inter-arrival times ti such that minIAT <= ti <= maxIAT where minIAT means minimum inter-arrival and maxIAT means maximum inter-arival time; these times are specified by the user.
- Keep the running total of these random times as arrival times
- Randomly generate service times si such that minST <= si <= maxST, where minST means minimum service time and maximum service time.
*Suggest a suitable ADT/ADTs for the problem discussed above
*Give a graphical representation of the ADT/ADTs
*Give complete specification of the ADT/ADTs
Similar Threads
-
Implementing a Stack Using two Queues
By rhm54 in forum New To JavaReplies: 3Last Post: 12-01-2010, 10:28 AM -
[SOLVED] Blocking Queues - how?
By sebo in forum New To JavaReplies: 4Last Post: 12-08-2008, 12:12 PM -
Help with Queues in Java
By Java01 in forum New To JavaReplies: 3Last Post: 11-07-2008, 03:56 PM -
I want to be able to do this with stacks and queues as well as with vectors
By carl in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks