Final Project %u2014 Topic 3 Random Number Guessing Game : Write a program that
ID: 3539136 • Letter: F
Question
Final Project %u2014 Topic 3
Random Number Guessing Game :
Write a program that first generates a random number. The number should be a non-negative integer and less than 1000. The program then asks the user to guess what the number is. If the user%u2019s guess is higher than the random number, the program should display %u201CToo high, try again.%u201D If the user%u2019s guess is lower than the random number, the program should display %u201CToo low, try again.%u201D The program should use a loop that repeats until the user correctly guesses the random number. The program should keep a 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. When the user correctly guesses the random number, the program should ask the user whether he/she want to play the game again. If the user answers %u201Cyes%u201D, the game should start again, otherwise, the program should terminate.
Extra Credit :
1. If the user plays the game multiple times, the program should display the minimum number of
guesses of all games played. Also, it should display the average number of guesses of all games played.
2. Any extra features that you want to add to the program. For example, ask the user to enter the range of the random numbers to be generated (0 %u2013 10000)
Explanation / Answer
what language is this supposed to be in?
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.