Question: How would I create this program in the C programming language, not C++? The last photo is the sample output Description: For the lab assignment
Description: For the lab assignment you are given information about students in a class (name, ID and GPA) and you need to compute a few statistics (max, min and average GPA) about the students and perform some linear search operation. All the students' information is stored in an input file. Below is the input file for the lab assignment. It has the number of students (first line), student's name, ID (5 digits) and GPA (a float). John 12345 3.5 Beth 12345 3.2 Murphy 57465 4.0 Donald 88888 3.8 The first entry in the file is the size of the input. Implement the following functions for the lab assignment. int read_info(char*, int , char**, float*): It takes four arguments, input file names (char) and three arrays of type int* , char** and float* to store the student ID, name and GPA respectively First open the input file using the file name provided by the user (from the command line). As mentioned earlier, the first line of the file is the size of the input. Read that number to run a loop. In a loop read information for each student and store them in the three arrays passed to function (int, char and float array). Close the input file after the use. At the end the function returns the size of the input. This function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
