// AP Computer Science, A Exam, 1996, Question 1, part B in C++ void Averages(const apvector & scores, const apvector & letters) { char ch; for(ch = 'A'; ch <= 'D'; ch++) { cout << ch << "\t" << LetterAverage(scores,letters,ch) << endl; } }