Writing a program to calculate grades...
My algorithm is long, so I only posted the part that gives me trouble.
When classes== 1,2,4, or 5, the program runs fine. but it terminates when classes == 3.
Please help !
if (classes==3) {
do {
cout<<"Enter the Letter grade for 1st class. (USE CAPS)"<<endl;
cin>>grade1;
Can you screenshot the error message? It is not clear what your question is? Your code looks fine, but what numbers are you entering after you build it? It may be a problem with the data type(float, int, double, ect.)