Java Genesis: Chapter 4
Home page
Problem 1:
winning the toss
Problem 2:
a strange modification to integers
Problem 3:
randomly colouring the circle
Problem 4:
selecting which tennis player serves first
Problem 5:
tossing a die for consecutive sixes
Problem 6:
tossing two dice for a pair of sixes
Problem 7:
average tosses for a pair of sixes
Problem 8:
moving the square again
Problem 9:
a strange sequence of integers
Problem 10:
computing the gcd
Problem 11:
an improved gcd algorithm
Problem 12:
computing approximate square roots
Problem 13:
circles with random radii
Problem 14:
the Fibonacci sequence
Problem 15:
a wandering square
Problem 16:
flashing colours