You are on page 1of 3

SIMULATION AND

MODELING
ASSIGNMENT # 6

NAME: M.Mohsin
Sap: 70076570
Sub: simulation & modeling
Dep: BSSE 5A

JANUARY 5, 2022
Question:

Consider the grocery store with one checkout counter. The system consists of those
customers in the waiting line plus the one (if any) checking out. A stopping time of
60 mins is set. Perform Event based discrete simulations.

Calculate the following:

S = Total time spent by customers in system

F = Total number of customers who spend 5 or more time in system ND = Total


number of departures

B = Server busy time

Service Service-Time
Inter-Arrival Time Arrival Departure
Time Begin

  4 0 0 4
1 2 1 4 6
1 5 2 6 11
6 4 8 11 15
3 1 11 15 16
7 5 18 18 23
5 4 23 23 27
2 1 27 27 28

Event Clock LQ LS Checkout FEL Cumulative


Statistics
Type
S ND F B
A 0 0 1 (C1,0) (A,1)(A,2)(E,60) 0 0 0 0
A 1 1 1 (C1,0),(C2,1) (A,2)(D,4)(E,60) 0 0 0 1
A 2 2 1 (C1,0)(C2,1)(C3,2) (D,4)(D,6)(E,60) 0 0 0 2
D 4 1 1 (C2,1)(C3,2) (D,6)(A,8)(E,60) 4 1 0 4
D 6 0 1 (C3,2) (A,8)(D,11)(E,60) 9 2 1 6
A 8 1 1 (C3,2)(C4,8) (D,11)(A,11)(E,60) 9 2 1 8
(D,A) 11 1 1 (C4,8)(C5,11) (D,15)(D,16)(E,60) 18 3 2 11
D 15 0 1 (C5,11) (D,16)(A,18)(E,60) 25 4 3 15
D 16 0 0 0 (A,18)(D,23)(E,60) 30 5 4 16
A 18 0 1 (C6,18) (D,23)(A,23)(E,60) 30 5 4 16
(D,A) 23 0 1 (C7,23) (A,25)(D,27)(E,60) 35 6 5 21
A 25 1 1 (C7,23)(C8,25) (D,27)(D,28)(E,60) 35 6 5 23
D 27 0 1 (C8,25) (D,28)(E,60) 39 7 5 25
D 28 0 0 0 (E,60) 42 8 5 26

You might also like