Assignment 1 CE-407 Simulation & Modeling
Assignment 1 CE-407 Simulation & Modeling
Name:_Areeba Ashraf___
Assignment 1
Teacher Name: Dr. Shakil Ahmed, Ms. Huma, Ms. Kiran & Ms. Safina
ANSWER:
i. A CAFETERIA :
Entities : customers, waiter, cashiers
Attributes : hungry, skillful, fast, responsible
Activities : take orders, collect orders, dispatch orders
Events : arrival and departure of customers
State Variables : number of occupied tables, no of orders per table, no of customers
in the waiting list.
Q2: A baker is trying to figure out how many dozens of bagels to bake each day. The probability
distribution of the number of bagel customers is as follows
Number of 8 10 12 14
Customers/day
Probability 0.30 0.35 0.20 0.15
Bagels sell for $8.40 per dozen. They cost $5.80 per dozen to make. All bagels not sold at the
end of the day are sold at half-price to a local grocery store. Based on 5 days of simulation, how
many dozens (to the nearest 5 dozen) bagels should be baked each day?
ANSWER :
RESULT :
Average = 15.4 dozens/day should be baked.