1.
•
•
•
A rich
oil
dealer gambles by tos3ing a
cOin
irl
the following
way.
If
It
comes down
heads he gets
1.
If
it
comes down tails he throws again but the possible reward
is
doubled. This
is
repeated so that the rewards are as shown.
THROW 1 2
3 4 5 6 7
REWARDS 1 2 4 8
16
32 64
By Simulating the game
try
to
decide what would be a
falC
initial payment for each
such game:
(a)
if
the player
IS
limited
to
a maximum of seven throws per
game
(b)
If
there
is
no maximum number of throws.
2
Bill
and Ben agree
to
gamble as
follows.
At
a given signal each divides his money
into two halves and passes one half
to
the other
player.
Each then divides his new
total and passes half
to
the
other.
Show what happens
as
the game proceeds
if
Bill
starts with 16p and Ben starts
With
64p.
3.
What happens
If
the game
IS
changed
so
that each hands over an amount equal
to
half of what the other possesses?
4.
Write a program which forms random three-letter words chosen from A,B,C,D and
prints them until 'BAD' appears.
5.
Modify
the
last
program
so
that
It
terminates when any
real
three
letter
word appears.
FOR SERVICE MANUALS
CONTACT:
MAURITRON
TECHNICAL
SERVlCEf
www.mauritron.co.uk
TEL: 01844 - 351694
FAX: 01844 - 352554
12/84
PROBLEMS
ON
CHAPTER
9
53