Student Database using Structures (Nested) and procedural programming approach
The program has following structures:
struct nameType {
string fname;
string lname;
};
struct dateType {
string dob;
string doa;
};
struct marksType {
int marks[5];
int totalMarks;
double percentage;
};
struct Student {
int regNo;
nameType name;
dateType date;
marksType record;
};
This program contains the following functions:
gets the number of students, data of each student and put them in the array.
appends data next to the last record.
processes the data and generates the result.
shows the result of all the students in the form of the table.
gets the registration number from the user and search it in the array. if found, then returns the index of it in the array otherwise displays message that record not found.
utilizes the searchRec() function and deletes the specific index by overwriting the data to one prior position.
tester for all the things
Program also contains the updation Menu
First of all, the user enters the registration number of the student. Then if available, following operations can be performed
updateRec() shows the updation menu and calls all the updation functions.
updates registration number of the student.
updates name of the student.
updates subject marks of the student.
updates date of birth of the student.
updates date of admission of the student.