Question: Write a program that generates a random number in the range of 1 through 1 0 0 and asks the user to guess what the
Write a program that generates a random number in the range of through and asks the
user to guess what the number is If the users guess is higher than the random number, the
program should show The guess is too high, try again!
If the users guess is lower than the random number, the program should show It is too low, try
again! If the user guesses the number, the program should congratulate the user and generate
a new random number so the game can start again.
Improve the game so it keeps count of the number of guesses that the user makes. When the user
correctly guesses the random number, the program should display the number of guesses.
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
