Question: In this project you will be tasked with writing a program to play a guessing game between another player and your program. Your program will
In this project you will be tasked with writing a program to play a guessing game between another player and your program. Your program will start by initializing an array to fixed values in the ranges of in the array. These values should also be in order sorted
Your program will then begin by asking the player to make a guess from For the first guess of the user, your program will only tell the player if they guessed correctly or not. However, the program will keep track of how close they are to the closest element in the array. The program will then go into a loop, asking the player for a new guess each time. If at any time, their new guess is farther away from the closest number than their previous guess, the program will respond with Getting colder! If they get closer to a correct guess, the program should respond with Getting warmer! This should continue until the player guesses one of the numbers in the list. Your program should then output Success and then end.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
