I have a list of rate, I want of the function I built it to calculate average of these rates and return it, but it keeps return me 0.0 (the initial value).
double