The average of a set of numbers is simply the sum of the numbers divided by the total numb…
Or if your purpose is learning the pseudocode in the Wikipedia entry on the bisection meth…