the char character for grade are coming up with weird ascii like characters instead of the letter grades. Please help!
//declaration
string first, last;
int prog1, prog2,prog3,prog4, prog5, test1, test2;
int totalpts, progavg, testavg, courseavg;
char grade;
//executables
totalpts = (prog1+prog2+prog3+prog4+prog5+test1+test2);
progavg = (prog1+prog2+prog3+prog4+prog5)/5;
testavg = (test1+test2)/2;
courseavg = (progavg+testavg)/2;
if (courseavg >=90 )grade=='A';
else if (courseavg <= 89 )grade=='B';
else if (courseavg <=79 )grade=='C';
else grade=='F';
cout<<left<<setw(20)<<"Student Name"<<setw(10)<<"Total"<<setw(10)<<"Program"<<setw(10)<<"Test"<<setw(10)<<"Course"<<setw(10)<<"Grade"<<endl;
cout<<right<<setw(26)<<"Points"<<setw(11)<<"Average"<<setw(10)<<"Average"<<setw(10)<<"Average"<<endl;
Instead of showing up the letter grades, everytime the program run, it will come up with new ascii like weird character. Any help would be much appreciated! Thanks