Average of an array (struct)
I've been going at this and can't seem to find the right way to do it. I only left the code that works because the rest is just embarrassing...

*Create a program using 2 arrays that holds a class set of data for 10 students:
The first array holds the first and last name (in different cells) of the students
The second array holds the grades (5 total) for each of the students
Create appropriate functions to load and display the array including the average 
and letter grade of the student. Drop the lowest grade from the student's average.*

I'm not asking for someone to do it for me, I just would like some help.

    #include <cstdlib>
    #include <iostream>
    
    using namespace std;
    
    const int CLASSIZE = 1;
    
    struct student
    {
        string firstName;
        string lastName;
        
        void printTheInfo()
        {
            cout << "Name: " << firstName << " " << lastName;
        }
        void loadMe()
        {
            cout << "First Name: ";
            cin >> firstName;
            cout << "Last Name: ";
            cin >> lastName;
        }
    };
    struct grades
    {
        int grade1;
        int grade2;
        int grade3;
        int grade4;
        int grade5;
        
        void printTheGrades()
        {
            cout << " Grades: " << grade1 << " " << grade2 << " " << grade3
                 << " " << grade4 << " " << grade5 << endl;
        }
        void loadGrades()
        {
            cout << "Grade 1: ";
            cin >> grade1;
            cout << "Grade 2: ";
            cin >> grade2;
            cout << "Grade 3: ";
            cin >> grade3;
            cout << "Grade 4: ";
            cin >> grade4;
            cout << "Grade 5: ";
            cin >> grade5;
        }
    };
    
    void printAllStudents(student [], grades [], int);
    void loadAllStudents(student [], grades [], int);
    
    int main(int argc, char *argv[])
    {    
        student theStudent[CLASSIZE];
        grades theGrade[CLASSIZE];
    
        loadAllStudents(theStudent, theGrade, CLASSIZE);
        printAllStudents(theStudent, theGrade, CLASSIZE);
    
        system("PAUSE");
        return EXIT_SUCCESS;
    }
    
    void loadAllStudents(student theStudents[], grades theGrades[], int s) 
    {
        for(int i = 0; i < s; i++)
        {
            theStudents[i].loadMe();
            theGrades[i].loadGrades();
        }
    }
    void printAllStudents(student theStudents[], grades theGrades[], int s) 
    {
        for(int i = 0; i < s; i++)
        {
            theStudents[i].printTheInfo(); 
            theGrades[i].printTheGrades();
        }
    }

Average of an array (struct)
===

I've been going at this and can't seem to find the right way to do it. I only left the code that works because the rest is just embarrassing...

*Create a program using 2 arrays that holds a class set of data for 10 students:
The first array holds the first and last name (in different cells) of the students
The second array holds the grades (5 total) for each of the students
Create appropriate functions to load and display the array including the average 
and letter grade of the student. Drop the lowest grade from the student's average.*

I'm not asking for someone to do it for me, I just would like some help.

    #include <cstdlib>
    #include <iostream>
    
    using namespace std;
    
    const int CLASSIZE = 1;
    
    struct student
    {
        string firstName;
        string lastName;
        
        void printTheInfo()
        {
            cout << "Name: " << firstName << " " << lastName;
        }
        void loadMe()
        {
            cout << "First Name: ";
            cin >> firstName;
            cout << "Last Name: ";
            cin >> lastName;
        }
    };
    struct grades
    {
        int grade1;
        int grade2;
        int grade3;
        int grade4;
        int grade5;
        
        void printTheGrades()
        {
            cout << " Grades: " << grade1 << " " << grade2 << " " << grade3
                 << " " << grade4 << " " << grade5 << endl;
        }
        void loadGrades()
        {
            cout << "Grade 1: ";
            cin >> grade1;
            cout << "Grade 2: ";
            cin >> grade2;
            cout << "Grade 3: ";
            cin >> grade3;
            cout << "Grade 4: ";
            cin >> grade4;
            cout << "Grade 5: ";
            cin >> grade5;
        }
    };
    
    void printAllStudents(student [], grades [], int);
    void loadAllStudents(student [], grades [], int);
    
    int main(int argc, char *argv[])
    {    
        student theStudent[CLASSIZE];
        grades theGrade[CLASSIZE];
    
        loadAllStudents(theStudent, theGrade, CLASSIZE);
        printAllStudents(theStudent, theGrade, CLASSIZE);
    
        system("PAUSE");
        return EXIT_SUCCESS;
    }
    
    void loadAllStudents(student theStudents[], grades theGrades[], int s) 
    {
        for(int i = 0; i < s; i++)
        {
            theStudents[i].loadMe();
            theGrades[i].loadGrades();
        }
    }
    void printAllStudents(student theStudents[], grades theGrades[], int s) 
    {
        for(int i = 0; i < s; i++)
        {
            theStudents[i].printTheInfo(); 
            theGrades[i].printTheGrades();
        }
    }
