Problem

Each of the following programs has errors. Find as many as you can.// This program uses an...

Each of the following programs has errors. Find as many as you can.

// This program uses an if/else if statement to assign a // letter grade (A, B, C, D, or F) to a numeric test score.#include using namespace std;int main( ){ int testScore; cout ≪ "Enter your test score and I will tell you\n"; cout ≪ "the letter grade you earned: "; cin ≫ testScore; if (testScore<60) cout ≪ "Your grade is F.\n"; else if (testScore<70) cout ≪ "Your grade is D.\n"; else if (testScore<80) cout ≪ "Your grade is C.\n"; else if (testScore<90) cout ≪ "Your grade is B.\n"; else cout ≪ "That is not a valid score.\n"; else if (testScore <= 100) cout ≪ "Your grade is A.\n"; return 0;}

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT