Question: Write a Racket program that implements the following game. You ask your friend to write down an integer between 1 and 100 but keep it
Write a Racket program that implements the following game.
You ask your friend to write down an integer between 1 and 100 but keep it hidden from you. You then execute your program which produces a guess for the number. If the guess is not correct, your friend tells you that the number is either BIGGER or SMALLER than this guess. You then execute the appropriate Racket function, either (BIGGER) or (SMALLER), and the computer computes another guess. Your code must guess the number within 6 attempts.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
