https://uk.essaywriters4life.com/wp-content/uploads/2020/10/output-onlinepngtools-6-1-300x59.png 0 0 admin https://uk.essaywriters4life.com/wp-content/uploads/2020/10/output-onlinepngtools-6-1-300x59.png admin2020-10-13 18:56:322020-10-13 18:56:32comp284guess my number program 1
Develop a program to execute a guessing game. The game rules/steps are as follow:
- The program will choose a random number between 0 and 100 (visit the random generator guide here)
- Prompt user to guess the number. Keep track of how many times user has guessed the number
- Receive user input and compare it with the guessed number.
- Provide on of the following messages to user:
- if their guess is off by 3 from the goal, message TOO HIGH or TOO LOW
- if their guess is off by less than 3 from the goal, message HIGH or LOW
- of their guess is correct, then message ” You successfully guessed the number after X tries” (X being the number of guesses.
The code from the professor is down in the word doc