Documentation Student Record Management System
Documentation Student Record Management System
Overview:
This program is a Student Record Management System that allows the user to manage
student data, including storing, displaying, updating, searching, and deleting
student records. The records are stored in arrays, and the program provides a menu-
driven interface to perform these actions interactively.
Features:
1. Enter Student Data: Input student records including roll number, name, class,
course, mobile number, and admission year.
2. Show Student Data: Display all the stored student records.
3. Search Student Data: Find a student by their roll number and display their
details.
4. Update Student Data: Modify the existing student record by updating fields.
5. Delete Student Data: Delete all student records from the system.
6. Quit the Program: Exit the system.
Code Structure:
```cpp
string roll_no[30], name[30], Class[30], course[30], mobile_no[30],
admission_year[30];
int total = 0;
```
- Arrays:
- `roll_no[30]`: Stores the roll numbers of students.
- `name[30]`: Stores the names of students.
- `Class[30]`: Stores the classes of students.
- `course[30]`: Stores the courses of students.
- `mobile_no[30]`: Stores the mobile numbers of students.
- `admission_year[30]`: Stores the admission years of students.
- `total`: An integer that stores the total number of student records entered.
2. Function: `enter()`
```cpp
void enter()
```
3. Function: `show()`
```cpp
void show()
```
4. Function: `search()`
```cpp
void search()
```
5. Function: `update()`
```cpp
void update()
```
```cpp
void Delete()
```
7. Function: `main()`
```cpp
int main()
```
- Purpose: The main function that contains the menu-driven interface to interact
with the program.
- Details:
- The program runs in an infinite loop (`while(true)`), continuously showing the
menu options until the user chooses to exit.
- The menu allows the user to:
- Enter student data
- Show all student records
- Search a specific student by roll number
- Update an existing student's record
- Delete all records
- Quit the program
- The user's choice is handled using a `switch` statement.
Menu Options:
Example Run:
1. Enter Data:
The user selects option 1 to enter student records. After inputting the required
details, the data is stored.
2. Show Data:
The user selects option 2 to display all entered student records. The system
prints out each student's information.
3. Search Data:
The user enters a roll number to search for a specific student. If the student
exists, their details are displayed.
4. Update Data:
The user enters a roll number, and the system displays the current details of
the student. The user is then prompted to update the student's data.
5. Delete Data:
The user selects option 5 to delete all records. If confirmed by pressing `1`,
all student data is erased.
Example Output:
```
Press 1 to Enter data
Press 6 to Quit
Press 6 to Quit
```
Future Improvements:
2. Input Validation:
- Add checks to ensure that the user inputs valid data, such as numeric values
for phone numbers and admission year.
3. Advanced Search:
- Improve search functionality to display a message when the student does not
exist, or handle multiple students with the same roll number.
4. Persistent Storage:
- Currently, data is lost when the program is closed. Implementing file I/O to
store data in a file would allow persistence across sessions.