Please please please, can you give me a hint on the strategy to use to find the answer in 4 tries?
The strategy is very simple actually. At ever step, you want to reduce the possibilities to half of the number of possibilities in the previous step. So, start from the middle. If that is too small, take the middle value of the bigger set (and the reverse if it is too big). Continue this way – notice that you can divide 15 by 2 only 4 times before you only have 1 option. • Are we supposed to have the computer generate random guess each time or should we assign the program to guess 8 first and then 12 if that is too small or 4 if that is too big? Maybe I did not make this very clear in the answer above. The strategy discussed above would essentially indicate that the computer’s guess will start with 8, and then go down or up based on how you react to it. But this is just a strategy, although probably the only one that is guaranteed to get to the solution within 4 tries. If you generate random guesses, you may not be guaranteed to make it in 4 tries. If you can come up with a strategy us