WHATS THE ALGORITHIM FOR THIS The course records are shown below: Each student has 4 assignments. 108194 9 10 10 10 197526 10 10 10 10 197008 10 10 0 10 197746 10 10 9 10 108154 10 0 10 9 Create an input file ‘CSassignments.txt’ using an editor such as Notepad++ with a student number, then a space, then four assignment marks on one line. The assignment marks are whole numbers and are separated by a space. Your C++ program will read from the file ‘CSassignments.txt’ and write to a second file ‘CSgrades.txt’ which includes the average of the student’s four assignments. e.g. 108194 9 10 10 10 9.75 Your C++ program should work with any number of records in the ‘CSassignments.txt’ input file – that is – test your program with TWO records and again with SIX records.
WHATS THE ALGORITHIM FOR THIS
The course records are shown below: Each student has 4 assignments.
108194 9 10 10 10
197526 10 10 10 10
197008 10 10 0 10
197746 10 10 9 10
108154 10 0 10 9
Create an input file ‘CSassignments.txt’ using an editor such as Notepad++ with a student number, then a space, then four assignment marks on one line. The assignment marks are whole numbers and are separated by a space.
Your C++
e.g. 108194 9 10 10 10 9.75
Your C++ program should work with any number of records in the ‘CSassignments.txt’ input file – that is – test your program with TWO records and again with SIX records.
Step by step
Solved in 5 steps with 4 images