Given the pseudocode for Binary Search Algorithm as
below:
BinarySearch(A, p, r, V)
if p < r
q = (p + r)/2
if V = A[q]
return q
else if V > A[q]
return BinarySearch(A, q+1, r, V)
else return BinarySearch(A, p,
q-1)
else if p = r,
if V = A[p]
return p
else
return -1
return -1
end function
Using this pseudocode, write a function for BinarySearch and
also complete the program, by...