Question: Write a program in C++ to: 1. Read all records from a binary file (also attached to this email) to arrays; (the record structure: student
Write a program in C++ to: 1. Read all records from a binary file (also attached to this email) to arrays; (the record structure: student number (20 bytes), grade (integer)) 2. Sort the list according to test scores; 3. Calculate the average test score for the class and print on the screen; 4. write sorted records to a new binary file. For example:
The records in the original file:
1 89
2 95
3 76
The new file sorted by scores:
3 76
1 89
2 95
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
