https://affordablenursingwriters.com/wp-content/uploads/2020/08/Affordable-nursing-300x66.png 0 0 admin https://affordablenursingwriters.com/wp-content/uploads/2020/08/Affordable-nursing-300x66.png admin2023-03-09 19:29:222023-03-09 19:29:22comp284guess my number program 1
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
comp284guess 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