Documente Academic
Documente Profesional
Documente Cultură
PROBLEM
Probabilities have been determined for the movements of the ball in a pinball game.T
the points awarded if the ball strikes a given position. Simulate the paths of three ba
ball.
B
C 0.20 0.70 51 70 C
B
D 0.15 0.85 71 85 D
E 0.10 0.95 86 95 E
F 0.05 1.00 96 100 F
From To Probability Cum Min Max To
A 0.10 0.10 1 10 A
B 0.15 0.25 11 25 B
C 0.20 0.45 26 45 C
C
D 0.15 0.60 46 60 D
E 0.25 0.85 61 85 E
F 0.15 1.00 86 100 F
From To Probability Cum Min Max To
A 0.10 0.10 1 10 A
B 0.05 0.15 11 15 B
C 0.25 0.40 16 40 C
D
D 0.20 0.60 41 60 D
E 0.25 0.85 61 85 E
F 0.15 1.00 86 100 F
From To Probability Cum Min Max To
A 0.05 0.05 1 5 A
B 0.10 0.15 6 15 B
C 0.15 0.30 16 30 C
E
D 0.15 0.45 31 45 D
E 0.20 0.65 46 65 E
F 0.35 1.00 66 100 F
F END END END END END END
all in a pinball game.These are shown in the accompanying table, along with
the paths of three balls, and compute the number of points awarded for each
RANDOM NUMBERS 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1ST BALL 39 33 59 40 2 27 43 36 55 93 52 54 21 14 36 20
2ND BALL 13 36 68 63 5 61 51 55 26 25 9 39 88 7 42 95
3RD BALL 80 20 25 31 72 81 49 23 3 59 87 68 3 27 14 82
LABORATORY EXERCISE
PROBLEM
Probabilities have been determined for the movements of the ball in a pinball game.Thes
ball strikes a given position. Simulate the paths of three balls, and compute the number
SIMULATION
1ST BALL
From To Probability Cum Min Max To FROM RN TO
A 0.30 0.30 1 30 A S 34 B
B 0.30 0.60 31 60 B
C 0.25 0.85 61 85 C PATH S-B-A-C-A-F
S
D 0.10 0.95 86 95 D TOTAL POINTS 1320 points
E 0.04 0.99 96 99 E
F 0.01 1.00 100 100 F
From To Probability Cum Min Max To 2ND BALL
A 0.25 0.25 1 25 A FROM RN TO
B 0.25 0.50 26 50 B S 76 C
A
C 0.25 0.75 51 75 C
A
D 0.10 0.85 76 85 D PATH S-C-C-C-F
E 0.10 0.95 86 95 E TOTAL POINTS 620 points
F 0.05 1.00 96 100 F
From To Probability Cum Min Max To 3RD BALL
A 0.30 0.30 1 30 A FROM RN TO
B 0.20 0.50 31 50 B S 32 B
C 0.20 0.70 51 70 C
B
D 0.15 0.85 71 85 D PATH S-B-A-C-E-D-D-C-E-F
E 0.10 0.95 86 95 E TOTAL POINTS 1420 points
F 0.05 1.00 96 100 F
From To Probability Cum Min Max To
A 0.10 0.10 1 10 A
B 0.15 0.25 11 25 B
C 0.20 0.45 26 45 C
C
D 0.15 0.60 46 60 D
E 0.25 0.85 61 85 E
F 0.15 1.00 86 100 F
From To Probability Cum Min Max To
A 0.10 0.10 1 10 A
B 0.05 0.15 11 15 B
C 0.25 0.40 16 40 C
D
D 0.20 0.60 41 60 D
E 0.25 0.85 61 85 E
F 0.15 1.00 86 100 F
From To Probability Cum Min Max To
A 0.05 0.05 1 5 A
B 0.10 0.15 6 15 B
C 0.15 0.30 16 30 C
E
D 0.15 0.45 31 45 D
E 0.20 0.65 46 65 E
F 0.35 1.00 66 100 F
F END END END END END END
n a pinball game.These are shown in the accompanying table, along with the points awarded if the
ompute the number of points awarded for each ball.
B-A-C-E-D-D-C-E-F
points
f the
POINTSRN TOPOINTSRN TO POINTS RN TO POINTS
200 67 E 50 87 F 20 87 DONE 0