Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please Answer questions (c), (d) (i), (ii), (iii) using Table 2: Random Numbers

ID: 3330971 • Letter: P

Question

Please Answer questions (c), (d) (i), (ii), (iii) using Table 2: Random Numbers below:

(a) (b) Give a full definition of the concept of simulation Set out the general simulation methodology in ten steps using a flow diagram At a bakery, the daily demand for bread (in loaves) has the following probability distribution Probabili Demand (loaves 1 000 2 000 3 000 4 000 0,10 0,30 0,45 0,15 (c) (d) What is the expected daily demand for bread at the bakery? In a simulation run, the daily demand for bread is generated from the probability distribution by sequentially using the uniformly distributed random numbers U1, U2,:: :, as given in Appendix A. (i) What is the demand for bread on the first day of the simulation run? (ii) What is the average demand for bread over the first four days of the simulation run? (3) (li) Draw a flow diagram of the logic to calculate the average daily demand for bread over the duration of a year (365 days). (Define any variables that you use clearly)

Explanation / Answer

c)

E(X) = sum p_i * X_i = 2650

d)

U1= 0.48

0.4<0.48<0.85

hence 3000

ii) 1 -3000   0.4<0.48<0.85

2- 1000     0<0.03 <0.10

3- 3000 0.4<0.52<0.85

4-3000 0.4<0.83<0.85

averag = 10000/4 = 2500

X p pX 1000 0.1 100 2000 0.3 600 3000 0.45 1350 4000 0.15 600 2650