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. |
____ 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) _____