Case Study: Student Grade
Management System Using Arrays in C
Background
A college department needs a basic software tool to manage student marks and evaluate
performance. The tool should handle:
- Input of marks for multiple students
- Calculation of total and average marks
- Identification of highest and lowest scores
- Assignment of grades based on average
The system should be simple, console-based, and implemented in C using arrays.
Objective
Develop a C program using arrays to:
- Store marks for n students across m subjects
- Calculate total and average marks per student
- Assign a grade (A/B/C/Fail) based on the average
- Display a ranked list of students by performance
System Requirements
- Use 2D arrays to store marks
- Use 1D arrays to store total and average
- Basic functions for input, processing, and output
- Loop structures (for, while) for iteration
Functional Requirements
1. Input student names and marks for each subject
2. Display total and average marks
3. Assign grades:
- A: 80 and above
- B: 60–79
- C: 40–59
- Fail: below 40
4. Sort students in descending order of average marks
Learning Outcomes
- Understanding of multidimensional arrays
- Implementation of functions and modularity
- Use of loops, conditions, and logical operators
- Hands-on practice in solving real-world problems using C