lol okay if you thought was bad at the loop and if/else stuff. I'm horrible at math stuff unfortunately I have no clue how to start the calculation. can you give me a hint?

and I think for the declared area you mean this? did i write that right?

Code:
int main ()
{
   
    string name,majorname,coursename;
    ifstream inData;
    ofstream outData;
    double gpa=0;
    double mgpa=0;
    double fgpa=0;
    int average, mcounter, fcounter;
    char gender=0;
    char m=0;
char f=0;