Question: Help with my code: #include #include #include using namespace std; int main () { string course, grade; string answer = Yes; int gpa, point =

Help with my code: #include #include #include using namespace std; int main () { string course, grade; string answer = "Yes"; int gpa, point = 0; int credits =0; int tgpoint = 0; int gpoint = 0; int tcredits = 0; float tgpa =0; cout<<"Enter a course name: "; cin.ignore(-1); getline(cin, course); cout<>credits; cout<>grade; cout<>answer; cout<>credits; cout<>grade; cout<>answer; cout<

It's not calculating my Total Grade Points Correctly. I should be getting 22 but I'm only getting 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!