I need help with Problem 4 from PS4. I cannot figure out what my if statement should be in the binary search. If I do the problem manually, knowing the answer it's easy as I know when to assign the guess from low to high. I get the correct answers for parts 1-3, so I know that's not the issue.

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Looking for something else?

Not the answer you are looking for? Search for more explanations.