Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: For this project, you have been tasked to read a text file with student grades ad perform several operations with them. First, you must

image text in transcribedimage text in transcribedimage text in transcribed

Description: For this project, you have been tasked to read a text file with student grades ad perform several operations with them. First, you must read the file, loading the student records. Each record (line) contains the student's identification number and then four of the student's numerical test grades. Your application should find the average of the four grades and insert them into the same array as the id number and four grades. I suggest using a 5th array position to hold the computed average. Once the file has been read and the averages calculated and stored in the array, you must sort the list by grade in descending order. Finally, the records should be printed to screen in descending final grade order with statistics at the end of the file for the class average, highest and lowest grades. We will cover the aspects you need to complete this project over the next 3-4 weeks. Obiectives: . Use of the FILE* and file functions. Use of functions to include the passing of arrays and or array elements. Implementation of a common (bubble sort) sorting algorithm. Display formatted output using input/output statements. Use format control strings to format text output. Use C data types. Requirements: Your program should make use of the following functions. A function to read the file into an array of arrays. This function should take an empty multi-dimensional array from the caller. The function should ask the user for the name of the file. You may assume the file name entered will be accurate and accessible. You will be given a test file (shown below). I suggest hard coding the filename while you develop your project to save typing it over and over while you test. A function to compute the grade for each array/record. This function should access the array and average the test grades, inserting the final average into the last position for each record as a float. 1. 2

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

Explain walter's model of dividend policy.

Answered: 1 week ago