Question: Here is a sample run of the program: Would you like to ( p ) lay or watch the ( c ) omputer play? p

Here is a sample run of the program:
Would you like to (p)lay or watch the (c)omputer play?
p
Enter your guess in between 101 and 200.
145
Sorry, your guess is too low, try again.
Enter your guess in between 101 and 200.
158
Sorry, your guess is too low, try again.
Enter your guess in between 101 and 200.
178
Sorry, your guess is too high, try again.
Enter your guess in between 101 and 200.
167
Sorry, your guess is too low, try again.
Enter your guess in between 101 and 200.
170
Sorry, your guess is too high, try again.
Enter your guess in between 101 and 200.
168
Sorry, your guess is too low, try again.
Enter your guess in between 101 and 200.
169
Congrats, you guessed the correct number, 169.
Would you like to (p)lay or watch the (c)omputer play or (q)uit?
c
The computer's guess is 150.
Sorry, your guess is too high, try again.
The computer's guess is 125.
Sorry, your guess is too high, try again.
The computer's guess is 112.
Sorry, your guess is too low, try again.
The computer's guess is 118.
Sorry, your guess is too high, try again.
The computer's guess is 115.
Sorry, your guess is too low, try again.
The computer's guess is 116.
Congrats, you guessed the correct number, 117.
Would you like to (p)lay or watch the (c)omputer play or (q)uit?
q
Press any key to continue

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 Databases Questions!