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

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

60961e104323d_26622.pdf

180 KBs PDF File

Word file Icon

60961e104323d_26622.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!