double (int index, double compVal, int numDays) { double aveSlope = 0; for (int i = 0; condition(index, numDays, i); i++) { --index; aveSlope = comminSending(index, compVal, aveSlope, i); } return aveSlope; }