Each of the following programs has errors. Find as many as you can.
// This program uses a switch-case statement to assign a // letter grade (A, B, C, D, or F) to a numeric test score.#include <iostream>using namespace std;int main( ){ double testScore; cout ≪ "Enter your test score and I will tell you\n"; cout ≪ "the letter grade you earned: "; cin ≫ testScore; switch (testScore) { case (testScore<60.0): cout ≪ "Your grade is F.\n"; break; case (testScore<70.0): cout ≪ "Your grade is D.\n"; break; case (testScore<80.0): cout ≪ "Your grade is C.\n"; break; case (testScore<90.0): cout ≪ "Your grade is B.\n"; break; case (testScore <= 100.0): cout ≪ "Your grade is A.\n"; break; default: cout ≪ "That score isn't valid\n"; return 0;}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.