Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions