Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions