#include double calcAverage(int grades[], int numGrades); int main() { int const MAX_GRADES = 100; int grades[] = {42,11,100,93,70}; int numGrades = 5; int const PASSING_SCORE = 70; for (int i = 0; i < numGrades; i++) { printf("%d - %d ", i, grades[i]); //this is what is going on here if (grades[i] >= PASSING_SCORE) printf("passing!\n"); else printf("failing :-(\n"); } double average = calcAverage(grades, numGrades); printf("The average is %f\n", average); printf("Hello, World! again...\n"); return 0; } double calcAverage(int grades[], int numGrades) { int total = 0; for (int i = 0; i < numGrades; i++) total = total + grades[i]; printf("the total is %d\n", total); double average = total / (double)numGrades; return average; }