Edward A. answered 02/15/18
Tutor
4.9
(17)
High School Math Whiz Grown Up--I've even tutored my grandchildren
Our job is to show you HOW to get an answer. You’re asking us to execute this code by hand. Not muh job.
do you have specific questions about this code?
Do you want to know how subscripts Work? Arr[0] = 1, arr[4] =7
Do you want to know whether the “mid” calculation rounds or truncates?
In C, Java and Python, it truncates.
If you have other questions, ask them. But only after YOU have desk-executed it first, please.