Question: Write a program that generates a random number in the range of 1 through 100, and asks the user to guess what the number is.
Write a program that generates a random number in the range of 1 through 100, and asks the user to guess what the number is. If the user’s guess is higher that the random number the program should display “too high try again.” If the user’s guess is lower than the random number, the program should display “too low,try again” If the user guesses the number the application should congratulate the user and then generate a new random number so the game can start over.
Step by Step Solution
3.38 Rating (157 Votes )
There are 3 Steps involved in it
To implement this behavior in a programming language like Python you can follow these steps to create a simple guessing game Steps to Create the Guess... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
60961e104323d_26622.pdf
180 KBs PDF File
60961e104323d_26622.docx
120 KBs Word File
