Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++: Output each student's grade in evenly spaced columns - the student score followed by their grade in parentheses. Considering the given input - If
C++:
Output each student's grade in evenly spaced columns - the student score followed by their grade in parentheses. Considering the given input
- If the student's score is within + or - 5 points of the average, give a grade of C.
- If the grade is more than 5 points but less than 15 points above (or below) the average, give a grade of B (D).
-If the grade is 15 points or more above (or below) the average, give a grade of A (E).
inputFile.txt 68 Cody Coder 84 100 100 70 100 80 100 65 Harry Haunini 77 68 65 100 96 100 86 100 Harry Potter 100 100 95 91 100 70 71 72 Mad Mulligun 88 96 100 90 93 100 100 100 George Washington 100 72 100 76 82 71 82 98 Abraham Lincoln 93 88 100 100 99 77 76 93 Correct Output: Student Exam Grades: Cody Coder Harry Houdini Harry Potter Mad Mulligun George Washington Abraham Lincoln 84(D) 77(D) 100(B) 88(C) 100(B) 93(C) 100(B) 68 (E) 100(B) 96 (B) 72(E) 88(C) 100(B) 65(E) 95 (C) 100(B) 100 (B) 100 (B) 70(E) 100(B) 91(C) 90(C) 76(D) 100(B) 100(C) 96 (C) 100(C) 93(C) 82 (D) 99 (C) 80(C) 100 (A) 70(D) 100(A) 71(D) 77(D) 100 (B) 86 (C) 71(D) 100 (B) 82(C) 76 (D) 65(E) 100(B) 72 (E) 100(B) 98 (B) 93(C)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started