using namespace std;
int g, a, b, c, d, e, f, h, i;
cout << "Enter your letter grades:\nPress Z to end input ";
cout << "\nGuide for Inputs\nEnter\n a if the grade is A\n b if the grade is B+\n c if the grade is B\n d if the grade is C+\n e if the grade is C\n f if the grade is D+\n h if the grade is D\n i if the grade is F\n";
while (( g = cin.get()) != EOF)
case ' ':
cout<< " You entered a wrong code. Please see the guidelines above";
cout << "\n\nTotal for each letter grade:\n A: " << a << "\n B+: " << b << "\n B: " << c <<"\n C+: " << d<<"\n C: " << e<<"\n D+ " << f <<"\n D: " << h<<"\n F: " << i << "\n";
cout << "\n press 1 if you wish to continue";
cout << " else press 0\n";
cin >> y;
}while ( y==1);
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.