#include using namespace std; int main() { // An array containing ten floating-point numbers used to store the grades // of up to 10 students, initialized in the declaration float studentGrades[5] = { 100.0 , 90.4 , 75.0 , 40.0 , -100.0 }; // An array containing 4 usernames as strings, initialized in the declaration string studentNames[5] = { "Lisa Simpson" , "Marge Simpson" , "Bart Simpson" , "Maggie Simpson" , "Homer Simpson" }; // Output each students grade... Note that the counter starts at 0, and // ends at 4 double average, sum = 0; for (int index = 0; index < 10; index++) { cout << "Student: " << studentNames[index] << "\tGrade: " << studentGrades[index] << endl; sum += studentGrades[index]; } average = sum / 5.0; cout << endl << "The average grade is: " << average << endl; return 0; }