Professional Documents
Culture Documents
Employee Management System: Computer Science (Python)
Employee Management System: Computer Science (Python)
EMPLOYEE
MANAGEMENT
SYSTEM
- Priet Ukani
Under the guidance of:- Mr. Kamlesh Raval
Priet Ukani
Puna International School
INDEX
1. Certificate 2
2. Acknowledgement 3
3. Frontend and 4
Backend tool
4. Coding 5
6. Output 9
7. Application of the 12
Project
8. Bibliography 13
1
2
AckNOwLEDGEMENT
3
FrONTEND AND BAckEND TOOLS
In a computer program/project dedicated for
a specific purpose, we broadly have two
parts or “ends”, the Frontend and the
Backend.
#setting Cursor
mycursor=myconnection.cursor()
#setting Autocommit
myconnection.autocommit=True
#creating Database
mycursor.execute("create database employees")
5
print()
6
def disp_dept_of_selected_emp():
myconnection = myconnector.connect(host="localhost", user="root",
passwd="priet",database="employees")
mycursor=myconnection.cursor()
name=input("Enter your Name- ")
mycursor.execute("select emp_dept from tab_emp_details where emp_name='{}'".format(name))
department=mycursor.fetchall()
print()
print("~~~~~~~~~~~~~~~~~~~~")
for d in department:
print(name," Your Department is- ",d)
print("~~~~~~~~~~~~~~~~~~~~")
print()
def menu():
print("employees MANAGEMENT SYSTEM")
C="yes"
c=input("Do you want to Continue? ")
while c.lower()=="yes":
print("1. employees Registration.")
print("2. Show Details of all employees.")
print("3. Update salary of a specified employees.")
print("4. Display employees Names in a Sorted Order.")
print("5. Count total Number of employees.")
print("6. Display Salary of the Selected employees.")
print("7. Display department of the Selected employees.")
print("8. EXIT.")
if choice==1:
register_emp()
elif choice==2:
disp_all_details()
elif choice==3:
update_salary_of_selected()
elif choice==4:
disp_emp_name_sorted()
elif choice==5:
count_reg_emp()
elif choice==6:
disp_salary_of_selected_emp()
elif choice==7:
disp_dept_of_selected_emp()
else:
print("EXIT")
break
else:
print("BYE!! Thanks for Using the system. ")
menu()
7
DATABASE AND TABLES
8
OUTPUT
Main Menu
9
All Employee Details
10
Salary of Selected Employee
11
APPLIcATIONS
12
BIBLIOGrAPHY
~ www.tutorialspoint.com
~ www.geeksforgeeks.com
~ www.learnpython.org
~ YouTube Channel Apni Kaksha
~ Introduction to Python Programming by Sumita
Arora Book
THANK YOU
13