Question: write a python code about this problem. Problem 1: Baker A baker is trying to figure out how many bagels to bake each day. The

 write a python code about this problem. Problem 1: Baker A

baker is trying to figure out how many bagels to bake each

write a python code about this problem.

Problem 1: Baker A baker is trying to figure out how many bagels to bake each day. The probability distribution of the number of bagel customers is as follows: 18 Number of customers per day Probability 10 0.40 12 0.30 14 0.20 16 0.05 0.05 Each customer, independent of the others, order 12, 24, 36 or 48 bagels according to the following probability distribution: 12 24 36 48 Number of bagels Probability 0.30 0.40 0.25 0.05 Bagels sell for 1.4 TL per item. 6 bagels cost 5.4 TL to make. All bagels not sold at the end of the day are sold at half-price (0.7 TL per bagel) to a local grocery store. Write a python program which makes 500 days of simulation, calculates how many bagels should be baked each day. The program should also draw a production graphic depends on the sales and profits like this: Bagel Production 30000 25000 20000 Sales/Profit 15000 10000 5000 200 250 300 350 400 450 500 550 Baked Bagels

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!