PROBLEM 1:
For a particular shop, the daily demand of an item with associated probabilities is given
below:
Daily demand 0
10
20
30
40
50
Probability
0.01
0.20
0.15
0.50
0.12
0.02
If random number stream (X1, X2 ..... X10) is generated using linear congruential generator
(Xi = a*Xi-1 + c)mod m with Xo = 27, a = 17, c = 4, and m = 100,
a) What is the average daily demand for first four days? (15 pts)
b) What is the average daily demand for first ten days? (20 pts)
c) What is the expected demand on 5th day? (15 pts)