Question: In C++ write a program in that can figure out a number chosen by a human user. The human user will think of a number
In C++ write a program in that can figure out a number chosen by a human user. The human user will think of a number between 1 and 100. The program will make guesses and the user will tell the program to guess higher or lower. the user inputs the characters h, l, and c for higher, lower, and correct. For the game to work best, every time your program makes a guess it should choose the midpoint of the remaining possible values. At the end ask if the user wants to play again.
Step by Step Solution
There are 3 Steps involved in it
To solve this task a binary search approach is ideal because it efficiently narrows down the possibi... View full answer
Get step-by-step solutions from verified subject matter experts
