Question: I'm expected to create a guessing game where the computer generates a random number and raises/limits the upper/lower bounds accordingly when generating its guess of

I'm expected to create a guessing game where the computer generates a random number and raises/limits the upper/lower bounds accordingly when generating its guess of said number. when it finally guesses it, it should break the code and end.

however, I'm having an error message stating that the "bound must be positive", which is confusing as I don't see where it would have the bound be negative as the lower bound should always be smaller then the larger bound.

thanks for any help.

I'm expected to create a guessing game where the computer generates a

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!