Skip to document

Grocery Example

Grocery Example
Course

Software Engineering (CS391)

174 Documents
Students shared 174 documents in this course
Academic year: 2021/2022
Uploaded by:
Anonymous Student
This document has been uploaded by a student, just like you, who decided to remain anonymous.
Fayoum University

Comments

Please sign in or register to post comments.

Preview text

El-Shorouk Academy Acad. Year :

Higher Institute for Computer & Term : First

Information Technology Year : 3rd

Department of Computer sciences

Instructor : Dr shaaban

Computer modeling & simulation

➔ Get the average daily demand for a small grocery store selling a fresh

bread according to the following distribution using the following random

No: ( 5 , 2 , 9 , 7 , 0 )

Daily Demand Probability of demand P ( D )

100 0.

110 0.

120 0.

Daily Demand Probability of demand P ( D )

100 0 0 → 1

110 0 2 → 6

120 0 7 → 9

➔ We have 5 random numbers then we simulate 5 days

1 st day:

RN= 5 → demand = 110 ( sell 110 fresh bread in that day )

2 nd day:

RN= 2 → demand= 110

3 rd day:

RN= 9 → demand= 120

4 th day:

RN= 7 → demand= 120

5 th day:

RN= 0 → demand= 100

Was this document helpful?

Grocery Example

Course: Software Engineering (CS391)

174 Documents
Students shared 174 documents in this course

University: Fayoum University

Was this document helpful?
El-Shorouk Academy Acad. Year :
Higher Institute for Computer & Term : First
Information Technology Year : 3rd
Department of Computer sciences
Instructor : Dr.farouk shaaban
Computer modeling & simulation
Get the average daily demand for a small grocery store selling a fresh
bread according to the following distribution using the following random
No: ( 5 , 2 , 9 , 7 , 0 )
Daily Demand
Probability of demand P ( D )
100
0.2
110
0.5
120
0.3