Question: Write a C++ program to organize student grades. The course records a in a file that will serve as the input file. The input is

Write a C++ program to organize student grades. The course records a in a file that will serve as the input file. The input is in this format: each line contains a student's last name, then follows by 5 quiz scores (in double), all in one line. Your program will take its input from this file and send its output to a second file. The data in the output file will be the same as the data in the input file except it is organized in the following format: student name with 10 spaces, left justified, quiz score shows two decimal places and occupies 7 spaces and is right justified. Sample input file: Jones 80.5 77 95.7 88.6 100 Smith 80 99 100 87.8 93.76 Holmes 53.65 84.54 76.67 97.75 89.9 Sample output file: 1. Jones 80.50 2. Smith 80.00 3. Holmes 53.65 77.00 99.00 84.54 95.70 76.75 76.67 88.60 100.00 87.00 93.76 97.75 89.90
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
