#include #include #include using namespace std; int main() { char grade(int score); // declare the function grade() vector scores; // no parentheses if we want to make an empty vector // We could imagine reading the scores from a file and pushing them // into the scores vector one at a time, until the end of file is // reached. For simplicity, here we'll just directly push back 3 values. scores.push_back(67); scores.push_back(93); scores.push_back(82); for (int i=0; i= 90) return('A'); else if (score >= 80) return('B'); else if (score >= 70) return('C'); else if (score >= 60) return('D'); else return('F'); }