234k views
5 votes
Customers arrive at a checkout counter at times 1,4,5,10,20,22,23,28,29,35. The time it takes fortheir checkout are the amounts 4,4,4,4,3,3,5,1,5. Compute for each customer the wait time fromwhen the customer arrives until the customer begins to get served. Use the formula given in classand in Dai&Park’s text.

User Harel
by
3.6k points

1 Answer

5 votes

Answer:

wait time in order = 0,1,4,3,0,1,3,3,3,2

Explanation:

We need to make a table for easy computation of wait time for each customer.

Customer Arrival Time taken Checkout Wait

Serial no. time for checkout time time

1 1 4 1+4= 5 0

2 4 4 4+5= 9 5-4= 1

3 5 4 9+4= 13 9-5= 4

4 10 4 13+4= 17 13-10=3

5 20 3 20+3= 23 0

6 22 3 23+3= 26 23-22=1

7 23 5 26+5= 31 26-23=3

8 28 1 31+1= 32 31-28=3

9 29 5 32+5= 37 32-29=3

10 35 37-35=2