Question: In c program Suppose we have a data file that contains student ID and his/her homework grades for hw1, hw2, hw3, and hw4. We would

In c program
Suppose we have a data file that contains student ID and his/her homework grades for hw1, hw2, hw3, and hw4. We would like to find out min, max and the average grade for each student as well as the total number of students and average hw grade of the whole class and write this information into another file. For instance, your program should process the following input.txt and generate the corresponding output.txt as follows: Id hw1 hw2 hw3 hw4 Id min max avg input.txt output.txt Example input file may contain: 1 67 75 83 78 2 86 89 90 88 3 92 86 77 91
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
