The inter-arrival times of customers arriving in a Pizza shop have an exponential distribution with rate α = 0.3 per minute. Simulate the times of 10 customers arriving in the shop. Also give the number of customers arriving in first 30 minutes.
To simulate the arrival times of customers in a Pizza shop with an exponential distribution, we can use a random number generator. In this case, the rate (α) is given as 0.3 per minute. The exponential distribution has a probability density function given by:
f(x) = α * exp(-αx), for x >= 0
f(x) = 0, for x < 0
To simulate the arrival times of 10 customers, we can follow these steps:
1. Initialize variables:
- Set time to 0 (start time).
- Initialize a counter for the number of customers to 0.
- Create an empty list to store the arrival times.
2. Loop 10 times to simulate 10 customer arrivals:
-
__________ ____ _____ ____ __________ __________.
__________ _________ _______ _____ __________ ____ _______.
__________ _______ _________ __________ _________ ________ ___ ____ _________ _____ _______.
________ _________ __________ __________ _______ __________ _______.
_____ __________ _____ ___ ______ ___ ______.
____ ________ ________ ________ ___ _________.
____ _____ ______ __________ ________ ________ ____ _____ _____ ________.
__________ ______ _______ ____ ________ ____ _______ ____.
____ _________ _________ ____ ______ ________ _________ ____.
____ ___ _______ __________ ________ __________ ______ _____ ____ ___ _______.
_________ _____ ____ ___ _____ _________ _______ ________ ____ ________ _______ ________.
_____ _______ _______ ______ ______.
_______ __________ _______ __________ ________ _________ _____ ___.
___ ______ ___ ____ ______.
____ ___ ________ _________ _____ _________ ___ ______ _______ _____.
_________ ________ _________ _____ __________ ___ _________ _______ _________ ____ _____ _____.
_______ __________ ______ _________ ________ ________ _____ ______ ______ ______ _____.
_______ ________ ____ _____ _____ _____ _________.
_________ ______ ___ _______ ______ _____ _____ _______ __________ _______ _______.
______ ________ ___ _____ ________ _______ ____ ______ ___ ______ __________ ________.
_______ ____ ______ _____ ____ _______ _______.
___ ___ __________ _________ ___ ____.
______ _________ ______ ________ _____ ___ __________ ______ ____ _____.
______ _____ _________ _____ ______ ________ _________ _____.
____ ____ __________ ________ __________ ________ _____.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required