Question: You are tasked with creating a Student Grades Management Tool to help manage and process student grades for a course. The tool will be used

You are tasked with creating aStudent Grades Management Toolto help manage and process student grades for a course. The tool will be used to store student names and their grades, validate inputs, and generate summary reports. You will use file handling functions in C to implement these functionalities, and you will focus on ensuring robust error handling, memory allocation, and formatted I/O operations.
Requirements:
Simulated File Access:
Implement acustom structure(MEM_FILE) to simulate a file in memory.Usemem_fopen(),mem_fgets(), andmem_fclose()to access the data.
Add Student Grades:
Prompt the user toinput a student nameand agrade.Only thefirst characterof the student name must be an alphabetic character. If it is not, prompt the user to enter the name again.Thegrademust be an integer between0 and 100. If an invalid grade is entered, print an error message and ask the user to re-enter the value.Write valid student names and grades to the file.
Generate a Summary Report:
After adding new entries, the program shouldread the entire fileto generate a summary report.The summary should include:
Total number of students.Average grade.Highest and lowest grades.A list ofstudents who scored below the average.

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 Programming Questions!