Why would you add the counter value to the grade here? Don't you want:


runningTotal = runningTotal + grade;

instead? Don't forget to initilize runningTotal to zero first also.