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

Function-Case Study-Employee Management System

Uploaded by

hiteshahire176
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Function-Case Study-Employee Management System

Uploaded by

hiteshahire176
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Case Study Assignment: Employee Management System

Objective

In this assignment, you will create a simple Employee Management System


using Python functions. The system will allow you to add, view, and search for
employee records. You will practice defining and using functions to
encapsulate functionality and improve code organization.

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.

You might also like