Hi Guys,
I have an assignment to do a gpa calculator using class construction and an array of grades.
The assignment is to have a class called Student and have a user enter an ID and then enter however many grades they want and then have the program calculate the gpa depending on whatever they inputted. Here is what i got so far,
If you can help soon it would be great. Thanks,
include <iostream>
using namespace std;
class Student
{ private:
int ID;
float grades [5] = {4, 3, 2, 1, 0};
public:
Student(int = 0,float = 0);
int nofgrades;
float averagegpa;
void getData();
void showData();
}
{
float Student::averagegpa()
{