I'm having trouble figuring out how to total the values that are put in during the loop. For this program I need to add up the values the user inputs and then display them after the loop. Here is what I have:
You need a separate variable to store the total. Initialize it to zero. int total = 0;
Then each time you read in a grade, add the value to the total: total += quizGrade;
This is shorthand for total = total + quizGrade