subject

Write a program that plays a guessing game with the user. The program should generate a random number between 1 and some maximum (such as 100), then prompt the user repeatedly to guess the number. When the user guesses incorrectly, the game should give the user a hint about whether the correct answer is higher or lower than the guess. Once the user guesses correctly, the program should print a message showing the number of guesses that the user made. Consider extending this program by making it play multiple games until the user chooses to stop and then printing statistics about the player's total and average number of guesses.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Which tab should you open to find the option for adding a header?
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
You know the right answer?
Write a program that plays a guessing game with the user. The program should generate a random numbe...
Questions
question
Mathematics, 20.01.2021 20:00
question
Mathematics, 20.01.2021 20:00
question
History, 20.01.2021 20:00
question
English, 20.01.2021 20:00
question
Spanish, 20.01.2021 20:00
Questions on the website: 13722363