[Solved] C Project Tasked Read Text File Student Grades Perform Several Operations First Must Read Q37202917
In C, For this project, you have been tasked to read a text filewith student grades and perform several operations with them.First, you must read the file, loading the student records. Eachrecord (line) contains the student’s identification number and thenfour of the student’s numerical test grades. Your applicationshould find the average of the four grades and insert them into thesame array as the id number and four grades. I suggest using a 5tharray position to hold the computed average. Once the file has beenread and the averages calculated and stored in the array, you mustsort the list by grade in descending order. Finally, the recordsshould be printed to screen in descending final grade order withstatistics at the end of the file for the class average, highestand lowest grades.
Requirements: Your program should make use of the followingfunctions. 1. A function to read the file into an array of arrays.This function should take an empty multi-dimensional array from thecaller. The function should ask the user for the name of the file.You may assume the file name entered will be accurate andaccessible. You may omit this requirement and hard code the path tothe file. You will be given a test file (shown below). I suggesthard coding the filename while you develop your project to savetyping it over and over while you test. 2. A function to computethe grade for each array/record. This function should access thearray and average the test grades, inserting the final average intothe last position for each record as a float. 3. A function to sortthe array of arrays by final grade in descending order (highestgrade first). This function should take the entire array. 4. Afunction to print out the results of the operation to screencalculating the required totals and formatting the outputappropriately. This function should take the entire array as well.Your program is expected to only deal with fractional values.Therefore, you are required to use a multi-dimensional array oftype float or double. Your program will not have to resize yourarray; you may hard code the size of the array using a constant(#define). The test files will have 10 records/students, a studentnumber followed by 4 grades. You may not use any global variablessave for the use of a constant for array size if you wish as shownoften in some examples.
output:
Sample Output: Student Id Test 1 Test 2 Test 3 Test 4 Final******************************************************************
7899 92 90 88 86 89
6814 85 86 92 88 87.75
8234 77 87 84 98 86.5
7654 76 87 84 88 83.75
3534 86 81 84 73 81
7284 56 81 87 98 80.5
7234 76 81 84 78 79.75
7934 76 91 84 65 79
9901 45 78 79 80 70.5
6465 87 54 68 72 70.25
******************************************************************
File:Print out sorted grades Load Data from file Compute GradeSort Records Main/Compute Grades.c
Input File (unsorted) grades.txt
Student Id Test 1 Test 2 Test 3 Test 4
6814 85 86 92 88
7234 76 81 84 78
6465 87 54 68 72
7899 92 90 88 86
9901 45 78 79 80
8234 77 87 84 98
7934 76 91 84 65
7284 56 81 87 98
7654 76 87 84 88
3534 86 81 84 73
Expert Answer
Answer to In C, For this project, you have been tasked to read a text file with student grades and perform several operations with… . . .
OR

