Design of the Lock
A typical combination lock will open only after its dial
has been moved to the three numbers of the combination in
the correct order.
For example, the combination "6-12-30" would be used by:
- Move the dial clockwise two rotations.
- Move the dial clockwise to "6"
- Move the dial counterclockwise to "12"
- Move the dial clockwise to "30"
- Pull the lock open.
In the progam we will ignore the details of rotation.
The lock will open when the user has entered
the correct three numbers in sequence.
|