Answered You can hire a professional tutor to get the answer.

QUESTION

Write a program that generates a random number between 1 and 100 and asks the user to guess what the number is.

Write a program that generates a random number between 1 and 100 and asks the user to guess what the number is. If the user’s guess is higher than 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.” The program should use a loop that repeats until the user correctly guesses the random number. Then the program should display “Congratulations. You figured out my number.”

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question