A#4 Guessing Game (Non-Graphical Version)

due: Thursday, January 30
You version of the program must be done individually. You are to write a program that will allow the user to play a number guessing game. Your program will pick a random number between 1 and 100. It will prompt the user to enter a guess. If the guess is not correct the program should tell the user if they should Guess Higher or Guess Lower. It should keep the user guessing until they guess the correct number.

Once the user guesses the correct number the program should tell the user that and say how many guesses it took (with proper grammer - ie. don't say 1 guesses). Your program should also print a message if the user makes a bad guess (eg. first guess was 50, program says to guess higher and the user chooses 25). Also print an error message if the user makes a guess out of the valid range (ie. lower than 1 or higher than 100). Here are two examples of runs of the program:

Enter your guess:
500
That number is invalid (1 - 100 only)
Enter your guess:
50
Guess Lower
25
Guess Higher
75
That was a bad guess.  You've already narrowed it down to 25-50.
Enter your guess:
30
You found my number.  It took you 5 guesses. 


Enter your guess:
42
You found my number.  It took you 1 guess.


      Marking Scheme

____
 22

Proper error messages (out of range) (2) _____
Proper bad guess messages            (3) _____
Proper higher/lower messages         (2) _____
Correct Win message                  (2) _____
Correct number of guesses            (2) _____
Proper grammar on guesses            (2) _____
Process work                         (3) _____
Opening Comment                      (2) _____
Variable Dictionary/Inline Comments  (2) _____
Proper Indentation                   (2) _____