Download Employee Management System Project Report and more Study Guides, Projects, Research Computer science in PDF only on Docsity!
GOVERNMENT GIRLS SENIOR SECONDARY SCHOOL
ACADEMIC YEAR : 2024-
PROJECT REPORT ON
EMPLOYEE MANAGEMENT SYSTEM
GROUP MEMBERS. : Aanchal Aggarwal, Anshu, Ridhima
CLASS : XII-A
SUBJECT : COMPUTER SCIENCE
PROJECT GUIDE : MISS ANJALI
Government Girls Senior Secondary school
CERTIFICATE
This is to certify that cadet Anchal aggarwal, Ridhima and Anshu has
successfully completed the project work entitled 'Employee management
system' in the subject Computer Science (083) laid down in the regulations of
CBSE for the purpose of practical examination in Class XII to be held in
Government Girls Senior Secondary School on _____________.
( Miss Anjali )
PGT
Examiner:
Name: _______________
Signature:
Acknowledgment
Apart from the efforts, the success of any project depends largely on the
encouragement and guidelines of many others. We take this opportunity
to express our gratitude to the people who have been instrumental in the
successful completion of this project.
We express deep sense of gratitude to almighty God for giving strength
for the successful completion of the project.
We express my heartfelt gratitude to our parents for constant
encouragement while carrying out this project.
We gratefully acknowledge the contribution of the individuals who
contributed in bringing this project up to this level, who continues to look
after me despite my flaws,
We express my deep sense of gratitude to the luminary The Principal,
who has been continuously motivating and extending their helping hand
to us.
We express my sincere thanks to the academician The Principal, for
constant encouragement and the guidance provided during this project
We overwhelmed to express our thanks to The Administrative Officer for
providing me an infrastructure and moral support while carrying out this
project in the school.
Our sincere thanks to Miss Anjali Ma'am Master In-charge, A guide,
Mentor all the above a friend, who critically reviewed our project and
helped in solving each and every problem, occurred during
implementation of the project
The guidance and support received from all the members who
contributed and who are contributing to this project, was vital for the
success of the project. We are grateful for their constant support and
help.
INTRODUCTION
The project is designed to keep records of Employee in specific
department and post who are working in these companies. A table
named empdata in MYSQL5.0 to store information about employee
Name, Contact, Address, Post, Salary with Employee ID.
Administrator of the project can enter new record, Display all or
specific passenger record; he can modify and delete records in any
table.
OBJECTIVES OF THE PROJECT
The main objective of this project is to learn the application of the
programming knowledge into a real-world situation/problem and
exposed the ourselves how programming skills helps in developing a
good software.
1. Write programs utilizing modern software tools.
2. Apply object oriented programming principles effectively when
developing small to medium sized projects.
3. Write effective procedural code to solve small to medium sized
problems.
4. To make file handling easy by using programs
Files Imported in Project
- Import MYSQL for Database connectivity Functions used in project
- Connect()- For Database and tables creation
- Cursor()- To execute MySQL queries
- Fetchall()- To fetch data from all attributes
- Commit()-To execute (commit) current code or section
- Fetchone()-To fetch data from attributes according to query conditions
Flow chart
def view_employees(): query = "SELECT * FROM employee" cursor.execute(query) results = cursor.fetchall() print("\nEmployee Records:") for row in results: print(f"ID: {row[0]}, Name: {row[1]}, Email: {row[2]}, Phone: {row[3]}, Address: {row[4]}, Position: {row[5]}, Salary: {row[6]}") print()
Function to update employee details
def update_employee(): emp_id = input("Enter Employee ID to update: ") column = input("Enter the column to update (name/email/phone/address/position/salary): ") new_value = input(f"Enter new value for {column}: ") query = f"UPDATE employee SET {column} = %s WHERE emp_id = %s" values = (new_value, emp_id) cursor.execute(query, values) con.commit() print("Employee record updated successfully!")
Function to delete an employee
def delete_employee(): emp_id = input("Enter Employee ID to delete: ") query = "DELETE FROM employee WHERE emp_id = %s" values = (emp_id,) cursor.execute(query, values) con.commit() print("Employee record deleted successfully!")
Function to search for an employee
def search_employee(): emp_id = input("Enter Employee ID to search: ") query = "SELECT * FROM employee WHERE emp_id = %s" values = (emp_id,) cursor.execute(query, values) result = cursor.fetchone() if result: print(f"\nEmployee Details:\nID: {result[0]}, Name: {result[1]}, Email: {result[2]}, Phone: {result[3]}, Address: {result[4]}, Position: {result[5]}, Salary: {result[6]}\n") else: print("Employee not found!")
Menu-driven program
def menu(): while True: print("\n--- Employee Management System ---") print("1. Add Employee") print("2. View Employees") print("3. Update Employee") print("4. Delete Employee") print("5. Search Employee") print("6. Exit") choice = input("Enter your choice: ") if choice == '1': add_employee() elif choice == '2': view_employees() elif choice == '3': update_employee()
Output Screenshots
Bibliography Google canva Computer science textbook by Sumita arora