Question: Your assignment is to read records from a sequential flat file and to print a grade report. Each record ( line ) contains the following
Your assignment is to read records from a sequential "flat file" and to print a grade report.
Each record line contains the following fields, separated by commas CSV file:
Student Name in quotes as First Name space Last Name
Test score
Test score
Test score
The name of the file will be 'grades.txt
It is unknown how many records there are.
Your report will display a title line: "Grade Report"
You will skip a single line.
Display a header line with the captions:
"Student G G G Avg", so that each caption is located over the information specified below.
Following that, each line of the report will contain the following information:
Student Name left justified in a width of columns
Graderight justified in columns
Graderight justified in columns
Graderight justified in columns
Average right justified in columns, showing decimal places
Please use C
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
