Sinclair QL Beginner's Manual page 64

Hide thumbs Also See for QL:
Table of Contents

Advertisement

(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.

Advertisement

Table of Contents
loading

Table of Contents