then enter however many grades they want
float grades [5] = {4, 3, 2, 1, 0};
Perhaps you can prompt the user how many students and how many grades each student will they input so you know how much to allocate your arrays.float Student::averagegpa()
you know how to calculate avg right?
use a for loop go through each grade and sum it up and divide the number by the number of grades.
ff4930
Junior Poster in Training
58 posts since Oct 2007
Reputation Points: 34
Solved Threads: 3