0% found this document useful (0 votes)
14 views16 pages

Employee Information System

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views16 pages

Employee Information System

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

VIDYA DEVI JINDAL SCHOOL

KOSI KALAN
COMPUTER SCIENCE (PYTHON) 083
C.B.S.E. BOARD PROJECT FILE
A.I.S.S.C.E. – 2024-25

EMPLOYEE INFORMATION
SYSTEM
SUBMITTED TO SUBMITTED BY

RAHUL TIWARI --------------------------


PGT (COMPUTER SCIENCE) --------------------------
--------------------------
CERTIFICATE

This is to certify that the Project/Dissertation entitled Employee Information

System is a bonafide work done by __________________________ of class XII

(Sci.) session 2024-25 in partial fulfilment of CBSE’s AISSCE Examination 2024

and has been carried out under my direct supervision and guidance. This report or

a similar report on the topic has not been submitted for any other examination and

does not form a part of any other course undergone by the candidate. I further

certify that this is his/her original work.

Signature of Teacher
(Mr. Rahul Tiwari)
ACKNOWLEDGEMENT
I undertook this Project work, as the part of my XII-Computer Science course. I had

tried to apply my best of knowledge and experience, gained during the study and

class work experience. However, developing software system is generally a quite

complex and time-consuming process. It requires a systematic study, insight vision

and professional approach during the design and development. Moreover, the

developer always feels the need, the help and good wishes of the people near you,

who have considerable experience and idea.

I would like to extend my sincere thanks and gratitude to my teachers Mr. Rahul

Tiwari, Mr Sanjay Kumar and Mr. Bhoopendra Singh Jadoun. I am very much

thankful to our Principal Fr. Dominic George for giving valuable time and moral

support to develop this software. I would like to take the opportunity to extend my

sincere thanks and gratitude to my parents for being a source of inspiration and

providing time and freedom to develop this software project. I also feel indebted to

my friends for the valuable suggestions during the project work.

Student: _______________
INTRODUCTION
This software project is developed to automate the functionalities of a Employee
Information System . The purpose of the software project is to develop a program
which provides a friendly interface for the user to maintain records of employee.
A MIS mainly consists of a computerized database, a collection of inter-related
tables for a particular subject or purpose, capable to produce different reports
relevant to the user. An application program is tied with the database for easy
access and interface to the database. Using Application program or front-end, we
can store, retrieve and manage all information in proper way.
This software, being simple in design and working, does not require much of
training to users, and can be used as a powerful tool for the automation of
Employee Information System.
During coding and design of the software Project, Python IDLE 3.7 , a powerful
front end tool is used. As a back-end a powerful, open source RDBMS, My SQL is
used as per requirement of the CBSE curriculum of Computer Science Course.
SYSTEM IMPLEMENTATION

The Hardware used:

While developing the system, the used hardware are:

PC with Pentium Dual Core processor having 2.00 GB RAM, SVGA and other
required devices.

The Softwares used:


Microsoft Windows® 7 as Operating System.
Python IDLE 3.7 as Front-end Development environment.
MySQL as Back-end Sever with Database.
MS-Word 2007 for documentation.
System Design & Development

Database Design:
An important aspect of system design is the design of data storage structure. To
begin with a logical model of data structure is developed first. A database is a
container object which contains tables, queries, reports and data validation policies
enforcement rules or constraints etc. A logical data often represented as a records
are kept in different tables after reducing anomalies and redundancies. The
goodness of data base design lies in the table structure and its relationship.

This software project maintains a database named projvdjs and tables


employeereport, employeereporttemp which contains the following information:
.
Tables:-
MODULES
 CREATE RECORD-
 SEARCH RECORD ON EMPLOYEE NO-
 SEARCH RECORD ON EMPLOYEE NAME-
 SEARCH RECORD ON EMPLOYEE PERCENTAGE-
 SEARCH RECORD ON EMPLOYEE YEAR OF JOIN-
 DISPLAY RECORD A.C.T. SALARY DESCENDING ORDER-
 MODIFY EMPLOYEE SALARY AS PER EMP NO-
 DELETE EMPLOYEE RECORD AS PER EMP NO-
 DISPLAY EMPLOYEE DELETED RECORD-

LIBRARIES IMPORT
import mysql.connector as p
import os
import sys
PYTHON CODE
import mysql.connector as p
import os
import sys
def createrecord():
con=p.connect(host="localhost",user="root",passwd="",database="projvdjs")
rec=con.cursor()
print("ENTER EMPLOYEE DETAILS")
empno=int(input("Enter employee no"))
ename=input("Enter employee name")
gender=input("Enter employee gender")
print("Provide employee date of join detail")
d=input("Enter day as per month")
m=input("Enter month (1-12)")
y=input("Enter year")
doj=y+"-"+m+"-"+d
sal=float(input("Employee monthly salary"))
rec.execute("insert into
employeereport(empno,ename,gender,doj,sal)values({},'{}','{}','{}',{})".format(empn
o,ename,gender,doj,sal))
print("Record successfully inserted")
con.commit()
con.close()

def searchrecordonempno():
con=p.connect(host="localhost",user="root",passwd="",database="projvdjs")
rec=con.cursor()
empno=int(input("Enter employee no to search"))
rec.execute("select * from employeereport where empno={}".format(empno))
data=rec.fetchall()
for i in data:
print(i)
con.close()
def searchrecordonename():
con=p.connect(host="localhost",user="root",passwd="",database="projvdjs")
rec=con.cursor()
sname=input("Enter employee name to search")
rec.execute("select * from employeereport where ename='{}'".format(sname))
data=rec.fetchall()
for i in data:
print(i)
con.close()
def searchrecordonsal():
con=p.connect(host="localhost",user="root",passwd="",database="projvdjs")
rec=con.cursor()
sal1=float(input("Enter employee start sal"))
sal2=float(input("Enter employee end sal"))
rec.execute("select * from employeereport where sal>={} and
sal<={}".format(sal1,sal2))
data=rec.fetchall()
for i in data:
print(i)
con.close()
def searchrecordonyear():
con=p.connect(host="localhost",user="root",passwd="",database="projvdjs")
rec=con.cursor()
year1=int(input("Enter employee start year"))
year2=int(input("Enter employee end year"))
rec.execute("select * from employeereport where year(doj)>={} and
year(doj)<={}".format(year1,year2))
data=rec.fetchall()
for i in data:
print(i)
con.close()
def arrangrecordonsaldesc():
con=p.connect(host="localhost",user="root",passwd="",database="projvdjs")
rec=con.cursor()
rec.execute("select * from employeereport order by sal desc")
data=rec.fetchall()
for i in data:
print(i)
con.close()
def modifysalonempno():
con=p.connect(host="localhost",user="root",passwd="",database="projvdjs")
rec=con.cursor()
empno=int(input("Enter empno on which want to modify sal"))
sal=float(input("Enter salary want to modify"))
rec.execute("update employeereport set sal={} where
empno={}".format(sal,empno))
con.commit()
rec.execute("select * from employeereport where empno={}".format(empno))
data=rec.fetchall()
print("Detail of modified record-",empno)
for i in data:
print(i)
con.close()
def removedataonempno():
con=p.connect(host="localhost",user="root",passwd="",database="projvdjs")
rec=con.cursor()
empno=int(input("Enter empno to remove record"))
rec.execute("select * from employeereport where empno={}".format(empno))
print("Detail of deleted record-",empno)
data=rec.fetchall()
d=[]
for i in data:
for j in i:
print(j,end="--")
d.append(j)
rec.execute("insert into
employeereporttemp(empno,ename,gender,doj,sal)values({},'{}','{}','{}',{})".format(
d[0],d[1],d[2],d[3],d[4]))
rec.execute("delete from employeereport where empno={}".format(empno))
con.commit()
con.close()
def displayremoverecord():
con=p.connect(host="localhost",user="root",passwd="",database="projvdjs")
rec=con.cursor()
rec.execute("select * from employeereporttemp")
data=rec.fetchall()
for i in data:
print(i)
con.close()
def displaydetailonsal():
con=p.connect(host="localhost",user="root",passwd="",database="projvdjs")
rec=con.cursor()
rec.execute("select count(*) from employeereport where sal>{}".format(75000))
d=[]
i=rec.fetchall()
for j in i:
d.extend(j)
rec.execute("select count(*) from employeereport where sal between {} and
{}".format(50000,74999))
i=rec.fetchall()
for j in i:
d.extend(j)
rec.execute("select count(*) from employeereport where sal between {} and
{}".format(25000,49999))
i=rec.fetchall()
for j in i:
d.extend(j)
rec.execute("select count(*) from employeereport where sal between {} and
{}".format(10000,24999))
i=rec.fetchall()
for j in i:
d.extend(j)
rec.execute("select count(*) from employeereport where sal<{}".format(10000))
i=rec.fetchall()
for j in i:
d.extend(j)
for i in d:
print(i)
con.close()

while(True):
os.system('cls')
print("1. CREATE RECORD-")
print("2. SEARCH RECORD ON EMPLOYEE NO-")
print("3. SEARCH RECORD ON EMPLOYEE NAME-")
print("4. SEARCH RECORD ON EMPLOYEE PERCENTAGE-")
print("5. SEARCH RECORD ON EMPLOYEE YEAR OF JOIN-")
print("6. DISPLAY RECORD A.C.T. SALARY DESCENDING ORDER-")
print("7. MODIFY EMPLOYEE SALARY AS PER EMP NO-")
print("8. DELETE EMPLOYEE RECORD AS PER EMP NO-")
print("9. DISPLAY EMPLOYEE DELETED RECORD-")
print("10. DISPLAY EMPLOYEE SALARY PERFORMANCE-")
print("11. EXIT-")
print()
h=int(input("ENTER YOUR CHOICE AS PER MENU GIVEN ABOVE(1 to 10)"))
if(h==1):
while(True):
createrecord()
ch=input("Enter Y or y for enter more record in continue")
if(ch!='Y' and ch!='y'):
break
elif(h==2):
searchrecordonempno()
elif (h==3):
searchrecordonename()
elif(h==4):
searchrecordonsal()
elif(h==5):
searchrecordonyear()
elif(h==6):
arrangrecordonsaldesc()
elif(h==7):
modifysalonempno()
elif(h==8):
removedataonempno()
elif(h==9):
displayremoverecord()
elif(h==10):
displaydetailonsal()
elif(h==11):
sys.exit()
else:
print("WRONG CHOICE PLEASE RUN AGAIN")
break
OUTPUT SCREEN
BIBLIOGRAPHY

1. Computer Science Class XI by Sumita Arora.


2. Computer Science Class XII by Sumita Arora.
3. www.myql.org.
4. www.python.org.

You might also like