Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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:
Code in C please
Suppose we have a data file that contains student ID and his/her homework grades for hw1, h2, 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 output.txt input.txt Example input file may contain: 1 67 75 83 78 2 86 89 90 88 92 86 77 91 3Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started