4. An array contains the elements shown below. Using the binary search algorithm,trace the steps followed to find 88. At each loop iteration, including the last, show the contents of first, last and mid.
(8,13,17,26,44,56,88,97)
5.Write a function that reverses the elements of an array so that the last element becomes the first, the second from the last becomes the second, and so forth.The function is to reverse the elements in place – that is, without using another array. Then write a test driver to test your function. Test it twice, once with an even number of elements in the array and once with an odd number of elements in the array.
6. Write a function that calculates the average number of characters per line in a file.