Question: write a C++ program that have this exactly output Description: Implement problems 20 & 21 in chapter 5. 1. Generate a secret random number between
write a C++ program that have this exactly output
Description: Implement problems 20 & 21 in chapter 5. 1. Generate a secret random number between 1 and 100 using the srandO and rand() functions. 2. Provide the user with a clue after each guess as to whether the guess is high or low 3. Keep track of the number of guesses. Quit and print out the secret number after 8 guesses 4. Allow the user to quit using guess number 0. Print out the secret number in this case. 5. Validate user guess, ie. 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
