guess this number is a game, which can be played by two players. one player specifies a number in his mind the second player has the right to ask a limited number of questions through which he should guess the number. the questions are as below:
is the number greater than G?
is the number less than L?
is the number greater than x?
is the number greater than y?
in each case the answer would be "yes" or "no". rite a program that accepts a 4 digits number through the input, and then lets the user to find the answer for the above 4 questions then user can make up to 10 guesses. in each round , the program outputs "high", if the guess is greater and "lo"if the guess is less than the target number. if the second player finds the exact number then the program displays"bingo" message. otherwise, after 10 guesses the program gives a score from 1 to 5 according to the proximity of the final guess to the chosen number. the score would be given based on the proximity percentage.
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
The moment you’ve entered the education system is the moment you start to realize that, although studying is extremely important,…
APPROVED BY CLIENTS
I thoroughly appreciate the quality of work that was completed. All questions were answered correctly, the presentation was clean, and all of my requests were met. It did take a little longer than expected for the expert to complete, but I offered the task in a time frame that may have been a bit of a small window to complete considering. All and all, I am completely satisfied with the services I've received. Thank you for the service. You may have a repeat customer.