Yea, i can do it by hand easily...what I don't understand is how to add each element to the next one. If you can help me with that I would really appreciate it. Here's what I have:
Code:
double avg = 0;
	for(int i=0; i<npts; i++)
		avg = (avg + a[i])/5;
	return avg;
is this even close?