Question: Write a program that asks the user to guess a random number between 1 and 100. Notes: - The program should tell the user if

Write a program that asks the user to guess a
Write a program that asks the user to guess a random number between 1 and 100. Notes: - The program should tell the user if their guess is too high or too low. - The program should continue to allow the user to guess the number until the user guesses the random number. - The program should keep track of how many tries did it take for the user to guess the random number. - Once the user guesses the random number, the program should ask the user if they would like to play again. If the user wants to play another game, then the program should generate a new random number for user to guess. - The program should keep track of how many games did the user play. 0 To generate a random number in C++, use the following code: #include // time; #include // srand, rand srand (time(NULL)); //initialize random seed num = rand() % 100 + l; //generates a number between 1 and 100 Deliverables: 1. A well-documented working C++ program 2. You only need to turn in the .cpp le

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!