Question: I only need the function AND I only got 20 mins to submit it. This program is in C. Write a C function that does

I only need the function AND I only got 20 mins to submit it. This program is in C.

Write a C function that does the following. The function takes two files names as string parameters. One file contains the names and ages of students. It also contains the number of students at the top. The function selects the students whose ages are greater than 25 and finds the average age of the selected students. The function writes the names and ages of the selected students and the average age of the seleted students to the second file. Example files are shown below.

6 tom 20 mary 27 smith 23 jim 18 tony 30 kim 35

mary 27 tony 30 kim 35 Average age: 30.66

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!