You need to write a program in C that will allow a teacher to store, update and view the grades of multiple students. The program should perform the following operations: Add a new student and their grades for different subjects. View the grades of a particular student. Update the grades of a particular student. View the average grades of all students. The program should store the following information for each student: Student name (string) Roll number (integer) Grades for 5 subjects (integers) The program should implement a menu-driven interface for the user to perform the above operations. The program should continue to run until the user selects to exit. Constraints: The student name should not exceed 50 characters. The roll number should be a positive integer and should be unique for each student. The grades should be integers in the range [0, 100].
You need to write a
Add a new student and their grades for different subjects.
View the grades of a particular student.
Update the grades of a particular student.
View the average grades of all students.
The program should store the following information for each student:
Student name (string)
Roll number (integer)
Grades for 5 subjects (integers)
The program should implement a menu-driven interface for the user to perform the above operations. The program should continue to run until the user selects to exit.
Constraints:
The student name should not exceed 50 characters.
The roll number should be a positive integer and should be unique for each student.
The grades should be integers in the range [0, 100].
Step by step
Solved in 4 steps with 7 images