Function-Case Study-Employee Management System
Function-Case Study-Employee Management System
Objective
Requirements
1. Function Definitions:
add_employee(employees, name, position): Adds an employee to the list
of employees.
view_employees(employees): Displays all employees in the system.
search_employee(employees, name): Searches for an employee by name
and returns their details if found.
2. Employee Structure:
Use a list of dictionaries to represent the employees. Each employee should
be represented as a dictionary with keys name and position.
3. User Interaction:
Create a simple text-based menu that allows the user to choose between
adding an employee, viewing all employees, or searching for an employee.
4. Input Validation:
Ensure that the user inputs valid data (e.g., non-empty strings for names and
positions).
5. Documentation:
Include docstrings for each function to describe its purpose, parameters, and
return values.
Deliverables
1. Submit the Python code implementing the Employee Management System.
2. Include comments and docstrings for clarity.
3. Write a short reflection (200-300 words) on what you learned about functions
in Python through this assignment.
Grading Criteria
Functionality (50 points): The program meets all functional requirements.
Code Quality (30 points): Code is well-organized, readable, and includes
appropriate comments and docstrings.
Reflection (20 points): Insightful reflection on learning outcomes.