Write a C program that plays the the game of \" guess thenumber\" as follows: Yo
ID: 3615176 • Letter: W
Question
Write a C program that plays the the game of " guess thenumber" as follows: Your program chooses the number to be guessedby selecting an integer at random in the range 1 to 1000. Theprogram then types:I have a number between 1 and 1000. Can you guess my number? Please type your first guess. The player then types the first guess. The program respondswith one of the following. 1. Excellent! You guessed the number! 2. Too low, try again. 3. Too high, try again. If the player's guess is incorrect, your program should loopuntil the player finally gets the number right.
I have a number between 1 and 1000. Can you guess my number? Please type your first guess. The player then types the first guess. The program respondswith one of the following. 1. Excellent! You guessed the number! 2. Too low, try again. 3. Too high, try again. If the player's guess is incorrect, your program should loopuntil the player finally gets the number right.
Explanation / Answer
please rate - thanks #include #include using namespace std; int main() {int randomdigit,number=-1; randomdigit=(time(0)%1000)+1; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.