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 1 score
Test 2 score
Test 3 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 G1 G2 G3 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 20 columns)
Grade1(right justified in 6 columns)
Grade2(right justified in 6 columns)
Grade3(right justified in 6 columns)
Average (right justified in 8 columns, showing 2 decimal places)
Please use C++
Your assignment is to read records from a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!