0% found this document useful (0 votes)
9 views

Documentation of Hamza

Uploaded by

novaanas1212
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Documentation of Hamza

Uploaded by

novaanas1212
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Global Variables:

 Students: Constant integer representing the maximum number of students.

 names[Students]: Array to store the names of students (string).

 emails[Students]: Array to store the email addresses of students (string).

 classNames[Students]: Array to store the class names of students (string).

 contacts[Students]: Array to store the contact numbers of students (string).

 dateOfBirth[Students]: Array to store the date of birth of students (string).

 total_students: Variable to keep track of the total number of students (integer).

Main Function:

 Displays a welcome banner for the student management system.

 Enters a loop to present a menu-driven interface to the user.

 Options available in the menu:

1. Enter Data: Allows the user to input data for a new student.

2. Show Data: Displays the data of all students.

3. Search Data: Searches for a student's data using their email address.

4. Update Data: Allows the user to update data for an existing student.

5. Delete Data: Allows the user to delete data for an existing student.

6. Exit: Exits the program.

main() Function:

 Purpose: Acts as the entry point of the program, presenting a menu-driven interface for
managing student data.

 Input: None.

 Output: None.

 Functionality:

 Displays a welcome banner for the student management system.

 Enters a loop to present a menu-driven interface to the user.

 Executes different functionalities based on the user's choice.

 Handles user inputs and calls corresponding functions.


Enter Data Option:

 Purpose: Allows the user to input data for a new student.

 Input: User input for student details (name, email, class, contact, date of birth).

 Output: None.

 Functionality:

 Validates the inputs for each field to ensure they are not empty.

 Checks for duplicate email addresses and prompts the user to enter a unique email if a
duplicate is found.

 Increments total_students after successfully adding a new student.

Show Data Option:

 Purpose: Displays the data of all students.

 Input: None.

 Output: Prints the data of all students stored in the arrays.

 Functionality:

 Iterates through the arrays and prints the details of each student, including name, email,
class, contact, and date of birth.

Search Data Option:

 Purpose: Searches for a student's data using their email address.

 Input: User input for the email address of the student to be searched.

 Output: Displays the data of the student if found; otherwise, notifies the user that the student
was not found.

 Functionality:

 Searches for the student with the provided email address.

 If found, displays the student's data (name, email, class, contact, date of birth).

 If not found, notifies the user that the student was not found.

Update Data Option:

 Purpose: Allows the user to update data for an existing student.

 Input: User input for the email address of the student to be updated and new data for the
student.

 Output: None.
 Functionality:

 Searches for the student with the provided email address.

 If found, allows the user to update the student's data, including name, email, class,
contact, and date of birth.

 Validates the inputs for each field to ensure they are not empty.

 Checks for duplicate email addresses and prompts the user to enter a unique email if a
duplicate is found.

Delete Data Option:

 Purpose: Allows the user to delete data for an existing student.

 Input: User input for the email address of the student to be deleted.

 Output: None.

 Functionality:

 Searches for the student with the provided email address.

 If found, deletes the student's data from the arrays and decrements total_students.

 If not found, notifies the user that the student was not found.

Additional Details:

 The program provides CRUD functionalities (Create, Read, Update, Delete) for managing student
data efficiently.

 It ensures data integrity by validating user inputs and handling duplicate entries appropriately.

 The menu-driven interface offers a user-friendly experience for interacting with the system,
enhancing usability and accessibility.

You might also like