void GradeInfo::PrintBarGraph() { int k,index; char ch; for(ch = 'A'; ch <= 'D'; ch++) { index = CharToIndex(ch); for(k=0; k < myGrades[index]; k++) { cout << ch; } cout << endl; } cout << "Total Grades = " << myCount << endl; }