A school teacher needs a program to play a number-guessing
game so students can learn to develop logical strategies and
practice their arithmetic. In this game the computer picks a
number between 1 and 100 and gives the player seven turns
to guess the number. After each incorrect try the computer
tells the player whether the guess is too high or too low.