answersLogoWhite

0


Best Answer

#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

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

def mean(numberList): if len(numberList) == 0: return float('nan') floatNums = [float(x) for x in numberList] return sum(floatNums) / len(numberList)

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

C-program using timer for cgpa calculator

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to calculate GPA in C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you calculate Nepalese GPA for American GPA?

Www.michaelkees.com


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.


How is GPA weighted at brown university?

Brown doesn't calculate GPA...


Is a 3.96 GPA an A- or A plus?

A+


How do you calculate GPA for my BE percentage 58.79 percent?

GPA=percentage/10 = 58.79/10 =5.879


How do you calculate GPA for Indian students?

log on to ece.org


How do you calculate 3.63 GPA to grade?

A 3.36 is typically a B+


What GPA do most colleges require for entrance?

Most colleges and universities indicate a 2.0 for general admissions. However, they do look for the students with the higher GPA. In addition, the GPA for general admission can be quite different than the GPA requirement for specific programs of study (majors). In other words, the GPA is often program specific. A liberal arts program may require a 2.0 GPA, but a business program may require a 3.2 GPA. Thus, it depends on the school (if competitive), and the specific program of study within that school. Also. remember the GPA is only one part of the admissions criteria. They may also look at standardized test scores, rigor of high school program, class rank, essay (if required), interview (if required), extracurricular activities, volunteer work, etc.


What GPA do you need to get into Davidson college?

3.75 plus


What is the GPA equivalent of a B plus?

3.0


How do you graduate with a 4 plus GPA?

Go to clown school


Where will a 3.5 GPA get you into?

With a 3.5 GPA, you will get into just about any school that you want.