EasyManuals Logo

Sinclair QL User Manual

Sinclair QL
422 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #69 background imageLoading...
Page #69 background image
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

Other manuals for Sinclair QL

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair QL and is the answer not in the manual?

Sinclair QL Specifications

General IconGeneral
ProcessorMotorola 68008
Clock Speed7.5 MHz
RAM128 KB (expandable to 640 KB)
ROM48 KB
Operating SystemSinclair QDOS
Release Year1984
StorageMicrodrive tape loop
Graphics256x256 pixels, 8 colors
PortsRS-232, ROM cartridge
SoundBeeper (internal speaker)

Related product manuals