Search Student
A function made to search a student from database by his name
About: The searchStudent()
function utilizes the search_database()
function to perform the actual searching of student information in the database.
It acts as a higher-level function that handles user interaction and delegates the search operation to the helper function.
1. search_database()
function:
search_database()
function:1.1: Description:
This function searches the database for files containing a given name or lastname and prints their contents.
1.2: Syntax:
Short Form:
Full Form:
1.3: Parameters:
1.4: Input:
The search term (name or lastname) to look for in the database.
1.5: Output:
The function prints the contents of the files that match the search term.
1.6: Usage:
This function is typically used when you want to search and retrieve information from the database based on a given name or lastname.
2. searchStudent()
function:
searchStudent()
function:2.1: Description:
This function serves as the main entry point for searching student information in the database. It provides a user-friendly interface and calls the search_database()
function to perform the search operation.
2.2: Syntax:
Short Form:
Full Form:
2.4: Function Tasks:
Prompt the user to enter a student's name or lastname.
Call the
search_database()
function with the provided search term.Display the information of the matching student(s) from the database.
Last updated