EasyManua.ls Logo

Sinclair QL - Page 64

Sinclair QL
135 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
Loading...
(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.

Other manuals for Sinclair QL

Related product manuals