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 IO operations.
Requirements:
Simulated File Access:
Implement acustom structureMEMFILE to simulate a file in memory.Usememfopenmemfgets andmemfcloseto access the data.
Add Student Grades:
Prompt the user toinput a student nameand agradeOnly 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 between and If an invalid grade is entered, print an error message and ask the user to reenter 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
