// This program uses independent if/else statements to assign a // letter grade (A, B, C, D, or F) to a numeric test score. // Do you think it will work? #include using namespace std; int main() { int testScore; // To hold a numeric test score char grade; // To hold a letter grade // Get the numeric test score. cout << "Enter your numeric test score and I will\n"; cout << "tell you the letter grade you earned: "; cin >> testScore; // What letter grade will be assigned? if (testScore < 60) grade = 'F'; if (testScore < 70) grade = 'D'; if (testScore < 80) grade = 'C'; if (testScore < 90) grade = 'B'; if (testScore <= 100) grade = 'A'; // Display the letter grade. cout << "Your grade is " << grade << ".\n"; return 0; }