Write a program that reads student's IDs and exam scores (type int) for a particular exam in a course from each line of an input file (the input file is included). You need to compute the average of these scores and assign grades to each student according to the following regulation: The output of your program should consist of a three-column table that shows each ID, score, and corresponding grade. A sample output is shown below. ID 0 الم - - - - - - MASTE If a student's score is within 10 points (above or below) of the average, assign a grade of satisfactory. If a student's score is more than 10 points above average, the grade will be outstanding. If a student's score is more than 10 points below the average, the grade will be unsatisfactory. ១. Score 75 99 66 43 87 65 82 91 84 76 COUNTER Grade Satisfactory Outstanding Unsatisfactory Unsatisfactory Outstanding Unsatisfactory Satisfactory Outstanding Satisfactory Satisfactory

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
100%
Write a program that reads student's IDs and exam scores (type int) for a particular exam in a course
from each line of an input file (the input file is included). You need to compute the average of these
scores and assign grades to each student according to the following regulation:
If a student's score is within 10 points (above or below) of the average, assign a grade of
satisfactory. If a student's score is more than 10 points above average, the grade will be
outstanding. If a student's score is more than 10 points below the average, the grade will be
unsatisfactory.
The output of your program should consist of a three-column table that shows each ID, score, and
corresponding grade. A sample output is shown below.
ID
0
ONM45676 0
1
8
9
Score
75
99
66
43
87
65
82
91
84
76
Grade
Satisfactory
Outstanding
Unsatisfactory
Unsatisfactory
Outstanding
Unsatisfactory
Satisfactory
Outstanding
Satisfactory
Satisfactory
Transcribed Image Text:Write a program that reads student's IDs and exam scores (type int) for a particular exam in a course from each line of an input file (the input file is included). You need to compute the average of these scores and assign grades to each student according to the following regulation: If a student's score is within 10 points (above or below) of the average, assign a grade of satisfactory. If a student's score is more than 10 points above average, the grade will be outstanding. If a student's score is more than 10 points below the average, the grade will be unsatisfactory. The output of your program should consist of a three-column table that shows each ID, score, and corresponding grade. A sample output is shown below. ID 0 ONM45676 0 1 8 9 Score 75 99 66 43 87 65 82 91 84 76 Grade Satisfactory Outstanding Unsatisfactory Unsatisfactory Outstanding Unsatisfactory Satisfactory Outstanding Satisfactory Satisfactory
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT