This is the employment management system designed in python without using any interface through sql it does not have sequence structured query or sql connectivity but perhaps it has file handling concept.
How To Use It:
just replace the txt file and location on the code
also always use the id of employment as shown below:
01
because in the code it search for the index 0,1 therefore it have only two digits employee names
you can make it to 3 or 4 just by replacing the code
we have already mentioned in the code part..
class 12th computer science project Employee Management System In Python
1. ALL INDIA SENIOR SCHOOL
CERTIFICATE EXAMINATION (2019-20)
Gandhi Public School, Gunupur
A PROJECT OF COMPUTER
SCIENCE ON
EMPLOYEE MANAGEMENT SYSTEM
NAME :
CLASS : 12th
ROLL NO:
GUIDED BY: Mr. Gurucharan Mahapatro
CONTENTS
3. Certificate
This is to certify that Master/Miss ………………………………….
Roll no…..…. studying in class…..…. Studying in Gandhi Public
School, has satisfactorily completed in Computer Science
with the title “EMPLOYEE MANAGEMENT SYSTEM” as a part
of course completion in pursuance of AISSCE during the
academic year 2018-19.
The project is original conceptualization and has been
executed by him under the guidance of Mr. Gurucharan
Mahapatro.
SIGNATURE OF THE TEACHER SIGNATURE OF THE PRINCIPAL
SIGNATURE OF THE EXAMINER SCHOOL STAMP
4. Acknowledgement
I would like to express my special thanks of gratitude to my
teacher Mr.Gurucharan Mahapatro as well as our principal
Mr.Prasanta Kumar Panda who gave me this golden
opportunity to do this wonderful project on the topic
“employee management system”, which also helped me in
doing a lot of research and I came to know about so many
new things.
I am really thankful to them.
Secondly I would also like to thank my parents and friends
who helped me a lot in finishing this project within the
limited time.
I am making this project not only for marks but also to
increase my knowledge.
Signature of the student
5. INTRODUCTION
Employee Managementsystem is an application that enables
users to create and store Employee Records. It also helps to
maintain the data of existing employees. It also helps to
know the number of employees in different departments by
the help of piechart and graph. This application is helpful to
department of the organization which maintains data of
employees related to an organization.
It is simple to understand and can be used by anyone who is
not even familiar with simple employees system. It is user
friendly and just asks the user to follow step by step
operations by giving him few options. It is fast and can
perform many operations of a company.
This software package has been developed using the
powerful coding tools of PYTHON. The software is very user
friendly. The package contains different modules like
Employee details. This version of the software has multi-user
approach. For further enhancement or development of the
package, user feedback will be considered.
7. MODULE
Malplotlib
This library offers many functions and tools to produce
quality output in variety of formats such as plots, charts,
graphs etc.
Matplotlib is an amazing visualization library in Python
for 2D plots of arrays. Matplotlib is a multi-platform
data visualization library built on NumPy arrays and
designed to work with the broader SciPy stack. It was
introduced by John Hunter in the year 2002.
One of the greatest benefits of visualization is that it
allows us visual access to huge amounts of data in easily
digestible visuals. Matplotlib consists of several plots
like line, bar, scatter, histogram etc.
Matplotlib is a plotting library for the Python
programming language and its numerical mathematics
extension NumPy. It provides an object-oriented API for
embedding plots into applications using general-
purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK+.
There is also a procedural "pylab" interface based on a
state machine (like OpenGL), designed to closely
resemble that of MATLAB, though its use is discouraged.
SciPy makes use of Matplotlib.
8. SOURCE CODE
company1():
def search():
a='y'
while a=='y':
n=input("Enter the id of employee:")
f=open('C:/Users/student/Desktop/employment
management system/new folder/emp1.txt','r').readlines()
for lines in f:
if n==lines[0]:
print(lines)
a=input("Press y for search again or press any key
to go back:" )
def optforg():
print("nnPress 1 for show the no. of employees of IT
SECTOR as pie chart")
print("nnPress 2 for show the no. of employees of
SALES as pie chart")
9. print("nnPress 3 for show the no. of employees of
MARKETING as pie chart")
print("nnPress 4 for show the no. of employees of
SECURITY DEPARTMENT as pie chart")
print("nnPress 5 to go backnn")
while True:
ch=int(input("Enter Your Choice(1-5):"))
if ch==1:
graph_invest()
elif ch==2:
graph_profit()
elif ch==3:
graph_loss()
elif ch==4:
graph_mark()
elif ch==5:
break
else:
print("invalid choice!")
def graph():
14. p=str(i_d)+"."+"NAME:"+name+"
DEPARTMENT:"+dept+" JOB TITLE:"+j+"
GENDER:"+g+" CONTACT"+c_+" ADDRESS:"+add+'n'
f.write(p)
f.close()
print("press 1 for show the details which you have
entered")
ch=int(input("Enter Your Choice:n"))
if ch==1:
edt()
else:
print("invalid choice")
while True:
print("nnPress 1 for show the details of all existing
employee")
print("nnPress 2 for search the employee")
print("nnPress 3 for adding the details of employee")
print("nnPress 4 for show the pie_chart of no. of
employees")
15. print("nnPress 5 for show the graph of no. of
employees")
print("nnPress 6 to go back into main menu")
ch=int(input("nnEnter Your Choice(1-6):"))
if ch==1:
opn()
elif ch==2:
search()
elif ch==3:
edetails()
elif ch==4:
optforg()
elif ch==5:
graph()
elif ch==6:
break
else:
print("Invalid Choice:")
def main():
while True:
16. print("nnPress 1 to go into 1st_company")
print("nnPress 2 to go into 1st_company")
print("nnPress 3 to go into 1st_company")
print("nnPress 4 to exit")
ch=int(input("nnEnter Your Choice(1-4):"))
if ch==1:
company1()
elif ch==2:
company2()
elif ch==3:
company3()
elif ch==4:
break
else:
print("Invalid choice")
def company2():
def search():
a='y'
while a=='y':
n=input("Enter the id of employee:")
17. f=open('C:/Users/student/Desktop/employment
management system/new folder/emp2.txt','r').readlines()
for lines in f:
if n==lines[0]:
print(lines)
a=input("Press y for search again or press any key
to go back:" )
def optforg():
print("nnPress 1 for show the no. of employees of IT
SECTOR as pie chart")
print("nnPress 2 for show the no. of employees of
SALES as pie chart")
print("nnPress 3 for show the no. of employees of
MARKETING as pie chart")
print("nnPress 4 for show the no. of employees of
SECURITY DEPARTMENT as pie chart")
print("nnPress 5 for exitnn")
while True:
ch=int(input("Enter Your Choice(1-5):"))
if ch==1:
22. def edetails():
f=open("emp2.txt","a")
n=int(input("nnHow many employees name you want
to enter?"))
for i in range(n):
name=input("Enter The Name of employees:")
i_d=int(input("Enter the id of the employees:"))
dept=input("Enter the department of the employees:")
j=input("Enter the job title of employees:")
g=input("Enter the gender of employees:")
c_=input("Enter the contact details of employees:")
add=input("Enter the address of employees:")
p=str(i_d)+"."+"NAME:"+name+"
DEPARTMENT:"+dept+" JOB TITLE:"+j+"
GENDER:"+g+" CONTACT"+c_+" ADDRESS:"+add+'n'
f.write(p)
f.close()
print("press 1 for show the details which you have
entered")
ch=int(input("Enter Your Choice:n"))
if ch==1:
23. edt()
else:
print("invalid choice")
while True:
print("nnPress 1 for show the details of all existing
employee")
print("nnPress 2 for search the employee")
print("nnPress 3 for adding the details of employee")
print("nnPress 4 for show the pie_chart of no. of
employees")
print("nnPress 5 for show the graph of no. of
employees")
print("nnPress 6 to go back into main menu")
ch=int(input("nnEnter Your Choice(1-6):"))
if ch==1:
opn()
elif ch==2:
search()
elif ch==3:
24. edetails()
elif ch==4:
optforg()
elif ch==5:
graph()
elif ch==6:
break
else:
print("Invalid Choice:")
def main():
while True:
print("nnPress 1 to go into 1st_company")
print("nnPress 2 to go into 1st_company")
print("nnPress 3 to go into 1st_company")
print("nnPress 4 to exit")
ch=int(input("nnEnter Your Choice(1-2):"))
if ch==1:
company1()
elif ch==2:
25. company2()
elif ch==3:
company3()
elif ch==4:
break
else:
print("Invalid choice")
def company3():
def search():
a='y'
while a=='y':
n=input("Enter the id of employee:")
f=open('C:/Users/student/Desktop/employment
management system/new folder/emp3.txt','r').readlines()
for lines in f:
if n==lines[0]:
print(lines)
a=input("Press y for search again or press any key
to go back:" )
26. def optforg():
print("nnPress 1 for show the no. of employees of IT
SECTOR as pie chart")
print("nnPress 2 for show the no. of employees of
SALES as pie chart")
print("nnPress 3 for show the no. of employees of
MARKETING as pie chart")
print("nnPress 4 for show the no. of employees of
SECURITY DEPARTMENT as pie chart")
print("nnPress 5 for exitnn")
while True:
ch=int(input("Enter Your Choice(1-5):"))
if ch==1:
graph_invest()
elif ch==2:
graph_profit()
elif ch==3:
graph_loss()
elif ch==4:
graph_mark()
elif ch==5:
30. import matplotlib.pyplot as plt
con=[24.8,26.8,25,28]
zones=['IT
SECTOR','SALES','MARKETING','SECURITY']
plt.axis("equal")
plt.pie(con,labels=zones,explode=[0,0,0,0.3],autopct="%1.2f
%%")
plt.show()
def edetails():
f=open("emp3.txt","a")
n=int(input("nnHow many employees name you want
to enter?"))
for i in range(n):
name=input("Enter The Name of employees:")
i_d=int(input("Enter the id of the employees:"))
dept=input("Enter the department of the employees:")
j=input("Enter the job title of employees:")
g=input("Enter the gender of employees:")
31. c_=input("Enter the contact details of employees:")
add=input("Enter the address of employees:")
p=str(i_d)+"."+"NAME:"+name+"
DEPARTMENT:"+dept+" JOB TITLE:"+j+"
GENDER:"+g+" CONTACT"+c_+" ADDRESS:"+add+'n'
f.write(p)
f.close()
print("press 1 for show the details which you have
entered")
ch=int(input("Enter Your Choice:n"))
if ch==1:
edt()
else:
print("invalid choice")
while True:
print("nnPress 1 for show the details of all existing
employee")
print("nnPress 2 for search the employee")
print("nnPress 3 for adding the details of employee")
32. print("nnPress 4 for show the pie_chart of no. of
employees")
print("nnPress 5 for show the graph of no. of
employees")
print("nnPress 6 to go back into main menu")
ch=int(input("nnEnter Your Choice(1-2):"))
if ch==1:
opn()
elif ch==2:
search()
elif ch==3:
edetails()
elif ch==4:
optforg()
elif ch==5:
graph()
elif ch==6:
break
else:
print("Invalid Choice:")
33. def main():
while True:
print("nn WELCOME TO
EMPLOYMENT MANAGEMENT SYSTEM")
print("nnPress 1 to go into 1st_company")
print("nnPress 2 to go into 2nd_company")
print("nnPress 3 to go into 3rd_company")
print("nnPress 4 to exit")
ch=int(input("nnEnter Your Choice(1-4):"))
if ch==1:
company1()
elif ch==2:
company2()
elif ch==3:
company3()
elif ch==4:
break
else:
print("Invalid choice")
#main_program
main()
37. CONCLUSION
We need employee management system because we can
able to search into different employee details by using their
“id” within seconds. We can also able to add details of the
employment easily and we can also able to see the pie chart
as well as graphs of number of employee in that particular
company.