1. Generate 20 random numbers and solve the following integrals by monte-carlo
(i) (ii)
2. A piece of equipment contains four identical tubes and can function only if all the four are in working order. The lives of tubes has approximately uniform distribution from 1000 to 2000 hours. The current maintenance practice is to replace a tube when it fails. Equipments has to be shut down for 1 hr for replacing a tube, the cost of one tube is sh 100, while the shut down time cost sh 200 per hour. Simulate the system for about 6000 hrs of run and find the maintenance cost using the following random numbers
0.8,0.2,0.6,0.3,0.1,0,0.8,0.9,0.2,0.8,0.3,0.7,0.4,0.8,0.5,0.6,0,0.4,0.9
3. A baker is trying to determine how many dozens of bread to bake each day. The probability distribution of the number of customers is as follows.
Number of customers: 10 12 14 16
Probability: 0.35 0.30 0.20 0.15
Customers order1,2,3 or 4 dozen bread according to the following distribution
Number of order/customers: 1 2 3 4
Probability: 0.4 0.3 0.2 0.1
Bread sells for sh 60 per dozen and cost sh 42 per dozen to make. The breads not sold at the end of the day are disposed off at half price. Generate uniformly distributed random numbers and determine by simulation the system for 20 days the dozen of bread which should be baked.
4. A newsstand can buy a daily newspaper for sh 50 each and sell it for sh 85. The unsold copies if any can be disposed off as waste paper at sh 20 each. The estimated daily demand distribution is as follows Demand (no of copies) probability 100 0.03 110 0.07 120 0.19 130 0.28 140 0.20 150 0.10 160 0.05 170 0.05 180 0.03
Generate uniformly distributed random numbers and determine the optimal number of newspaper copies which should be procured, so that the expected profit is maximum