Part Zero Introduction Suppose we want to write a function that computes the average of a list of numbers. One implementation is given here: double GetAverage(double arr[],…