Modify the program of Exercise 16.30 to count the number of guesses the player makes. If the number is 10 or fewer, dis- play Either you know the secret or you got lucky! If the player guesses the number in 10 tries, display Ahah! You know the secret! If the player makes more than 10 guesses, display You should be able to do better! Why should it take no more than 10 guesses? Well with each “good guess” the player should be able to eliminate half of the numbers. Now show why any number 1 to 1000 can be guessed in 10 or fewer tries.

What will be an ideal response?

```

1

2

3

4

5 Solution: 16.31

6

7