answersLogoWhite

0

#include

#include

using namespace std;

int main ()

{

cout << endl << "Please enter all the grades you wish to use for your GPA." << endl;

cout << endl << "When you have finished, enter N to indicate that you have no more grades." << endl;

cout << endl << "The highest acceptable grade is 100%, if you got higher than this congratulations but please enter only 100 as grade." << endl;

cout << endl;

float Grade = 0;

int NumClass = 0;

const int Stop = -1;

float GPAVal = 0;

float TotGPAVal = 0;

float GPA = 0;

string SemName;

while (SemName != -1)

{

cout << "Please enter name of the semester of grades you want to enter." << endl;

cin >> SemName;

cout << SemName << endl;

do {

cout << endl << "Please enter grade: ";

cin >> Grade;

if ( Grade <=100 && Grade >= 90 )

{

GPAVal = 4.0;

cout << "Grade: " << Grade << "%; GPA Value: 4.0" << endl;

TotGPAVal = TotGPAVal + GPAVal;

}

else if ( Grade < 90 && Grade >= 80 )

{

GPAVal = 3.0;

cout << "Grade: " << Grade << "%; GPA Value: 3.0" << endl;

TotGPAVal = TotGPAVal + GPAVal;

}

else if ( Grade < 80 && Grade >= 70 )

{

GPAVal = 2.0;

cout << "Grade: " << Grade << "%; GPA Value: 2.0" << endl;

TotGPAVal = TotGPAVal + GPAVal;

}

else if ( Grade < 70 && Grade >= 60 )

{

GPAVal = 1.0;

cout << "Grade: " << Grade << "%; GPA Value: 1.0" << endl;

TotGPAVal = TotGPAVal + GPAVal;

}

else if ( Grade < 60 && Grade >= 0 )

{

GPAVal = 0.0;

cout << "Grade: " << Grade << "%; GPA Value: 0.0" << endl;

TotGPAVal = TotGPAVal + GPAVal;

}

else if ( Grade = Stop )

{

GPA = (TotGPAVal / NumClass);

cout << endl<< "Your overall GPA, after " << NumClass << " courses, is " << GPA << "." << endl << endl;

}

NumClass = NumClass + 1;

}

while (( Grade >= 0 ) && ( Grade <=100 ));

if (SemName = -1)

{

cout << "Thank you for using this program!" << endl;

}

}

return (0);

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the average masters GPA of students in your program?

The average GPA of students in our program is 3.5.


How do you calculate Nepalese GPA for American GPA?

Www.michaelkees.com


What is the average cumulative GPA of students in the program?

The average cumulative GPA of students in the program is 3.5.


What is the average graduate GPA of students in the program?

The average graduate GPA of students in the program is 3.5.


What GPA do you have to have in order to graduate?

You must have a minimum of a 2.0 GPA to graduate. The GPA for entrance depends on the institution and the specific program of study.You must have a minimum of a 2.0 GPA to graduate. The GPA for entrance depends on the institution and the specific program of study.You must have a minimum of a 2.0 GPA to graduate. The GPA for entrance depends on the institution and the specific program of study.You must have a minimum of a 2.0 GPA to graduate. The GPA for entrance depends on the institution and the specific program of study.You must have a minimum of a 2.0 GPA to graduate. The GPA for entrance depends on the institution and the specific program of study.You must have a minimum of a 2.0 GPA to graduate. The GPA for entrance depends on the institution and the specific program of study.


What is the minimum GPA needed for admission to a master's program?

The minimum GPA required for admission to a master's program varies depending on the institution and program, but generally, a GPA of 3.0 or higher is commonly required.


How is GPA weighted at brown university?

Brown doesn't calculate GPA...


What GPA do you need to qualify for a master's program?

Typically, you need a minimum GPA of 3.0 to qualify for a master's program.


What is the average grad school GPA of applicants in your program?

The average grad school GPA of applicants in our program is 3.5.


What is the minimum GPA required for admission to the master's program?

The minimum GPA required for admission to the master's program is 3.0.


What is the minimum GPA requirement for admission to the Masters program?

The minimum GPA requirement for admission to the Masters program is 3.0.


What is the minimum required GPA for admission to the master's program?

The minimum required GPA for admission to the master's program is 3.0.