double avg(double array[]);