Question: write the following loop: Prompt the user for a limit . Call a function to play the game which will: calculate a rendom number using
write the following loop: Prompt the user for a limit Call a function to play the game which will: calculate a rendom number using the limit entered by the user. display a message showing a range to be guessed.Write a loop that will: Prompt user for a number. Compare the user guess to the generated random number. if the guess is too high, display retry. if the guess is too low, diplay retry. if theguess is correct, display message and exit loop. Prompt the user to play again. if y replay the game. Prompt the user to play again. if n say googbye.
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
