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

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

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 Databases Questions!