#include int main() { const int MAXGRADES = 5; int i, grade[MAXGRADES], total = 0; cout << endl; for (i = 0; i < MAXGRADES; i++) // Enter the grades { cout << "Enter a grade: "; cin >> grade[i]; } cout << "\nThe total of the grades"; for (i = 0; i < MAXGRADES; i++) // Display and total the grades { cout << " " << grade[i]; total = total + grade[i]; } cout << " is " << total << endl; return 0; }