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

cs project report (1)

Uploaded by

anurag1052007
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)
5 views

cs project report (1)

Uploaded by

anurag1052007
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/ 18

Kendriya Vidyalaya No. 2 Inf.

Lines,
Jamnagar (Gujarat
(Affiliated to CBSE, New Delhi Affiliation Number 400022 CBSE School Code: 14112)

A Project Report on Name of the Project: EMPLOYEE


MANAGEMENT SYSTEM
For Term II

AISSCE Practical Exam of


Class XII of Computer Science (083)
Academic year 2021-22

Submitted to: Submitted by:


Amit Kumar Meena Name of the Student: ERSAD
PGT Comp. Sci. Roll number: 09
CERTIFICATE
NAME: ERSAD
SUBJECT: COMPUTER SCIENE (083)
ROLL NO: 09

It is hereby to certify that, the original and


genuine investigation work has been carried out to
investigate about the subject matter and the
related data
collection and investigation has been completed
solely, sincerely and satisfactorily by Amit kumar
Meena (PGT
C.S) of CLASS XII Science, Kendriya Vidyalaya No. 2
Inf. Lines, Jamnagar regarding his project titled
“EMPLOYEE MANAGEMENT SYSTEM”.

Teacher’s signature: Principle’s signature:

Date: External Examiner:


ACKNOWLEDGEMENT
It would be my utmost pleasure to express
my sincere thanks to My Comp. Science
teacher Amit Kumar Meena (PGT Comp. Sci.)
in guiding and providing a helping hand in
this project. His valuable advise, support
and supervision all through this project titled
“EMPLOYEE MANAGEMENT SYSTEM”, are
responsible for attaining its present form.

YOUR NAME : ERSAD


YOUR CLASS : XII SCIENCE (‘A’)
Introduction of Project

Employee Management System is a software which is used to manage


details of an Employee in an Organization and their Salary Calculations.
The employee management system is designed using Python as front
end and MySQL as the secured backend database.

In this project the details are maintained like Employee name, address,
contact details, designation, salary, joining date, qualification etc. The
attendance can also be tracked for the employees, salary slips are
generated computerized and the management is done without any
difficulty.

The reports can be viewed completely and the head of the management
daily or weekly or monthly can review it. For company auditing it will be
more useful. This Proposed System will be interactive, faster and user-
friendly for the end users. Using the Employee management system,
the following activities can be performed.

➢ Adding an employee record

➢ Tracking Attendance

➢ Salary Slip Generation

➢ Updating Employee Data

➢ Employee Performance Report

➢ Login
EXISTING SYSTEM

Employee Management involves maintaining various operations to be


performed on Employee Data like Maintaining up to date information,
attendance tracking and salary calculation etc. The existing system is a
manual one and there is lot of issues like erroneous data, slow process,
lack of security etc. Finding out the salary payment amount completely
relies on the office clerks and accountants and, it takes a long time to
find out the details and calculations ate prone to errors.

Drawbacks of the Existing System

➢ Manual entry employees more time.


➢ It is difficult to maintain bulk of record in manual.
➢ Restrictions in the users.
➢ Not easy to prepare the daily reports.
➢ Lack of accuracy and error prone.
➢ Overall efficiency is less.
➢ Lot of paperwork.
➢ Non-secure.
➢ No perfect maintenance of report.
➢ No method to trace details
➢ Human errors
➢ The manual system is too slow
➢ Searching is more time consuming
Advantages of proposed system

The following are the objectives and highlights of the proposed system

➢ Secure data
➢ Faster process
➢ Error Free
➢ Better management
➢ Save a lot of manpower
➢ Can easily make the daily reports
➢ Elimination of Paper work.
➢ High reliability and security.
➢ Fast and economical.

Modules

➢ Add an Employee

➢ Salary Slips

➢ Manage Attendance

➢ Update Employee Data

➢ Reports
MODULE DESCRIPTION

Add an Employee

This module deals with adding the new employee’s data in the
database. We store all required information like Name, Address,
Contact Number, Qualification, Previous Job Experience, Designation ,
Joining Date, Base Pay etc.

All this data is saved in a secure database and can be fetched


anytime as and when required.

Salary Slips

This module deals with the generation of Salary Slip for each employee
every month. It calculates the HRA, DA, TA, PF and other allowances
for all employees on their respective Base Pay and generates the salary
to be paid for a specific month.

Reports

This module deals with the generation of the reports for the various
modules. The customer list can be generated. Room status list can be
retrieved for reference. The check in and checkout registers can also be
retrieved for any future queries.
Software Requirement Specification

❖ Python

(1) Easy Language

Python is an easy language. It is easy to read, write, learn and


understand.
• Python has a smooth learning curve. It is easy to learn.
• Python has a simple syntax and Python code is easy to understand.
• Since it’s easy to understand, you can easily read and understand
someone else’s code.
• Python is also easy to write because of its simple syntax.
Because it is an easy language, it is used in schools and universities to
introduce students to programming. Python is for both startups and big
companies.

(2) Readable
The Python language is designed to make developers life easy. Reading
a Python code is like reading an English sentence. This is one of the key
reason that makes Python best for beginners.
Python uses indentation instead of curly braces, unlike other
programming languages.
This makes the code look clean easier to understand.

(3) Interpreted Language

Python is an interpreted language. It comes with the IDLE (Interactive


Development Environment). This is an interpreter and follows the REPL
structure (Read-Evaluate-Print-Loop). It executes and displays the
output of one line at a time.
Python is not statically-typed like Java. You don’t need to declare data
type while defining a variable. The interpreter determines this at
runtime based on the types of the parts of the expression. This is easy
for programmers but can create runtime errors.
Python follows duck-typing. It means, “If it looks like a duck, swims like
a duck and quacks like a duck, it must be a duck.”

(4) Object-Oriented

Python is object-oriented but supports both functional and object-


oriented programming. Everything in Python is an object.
It has the OOP (Object-oriented programming) concepts like inheritance
and polymorphism or the error.

❖ MySQL

You can Change the Features of Python and SQL Features should
be added here
Hardware Specification:-

Processor : Pentium IV +

Clock Speed : 2 GHz

RAM : 512 MB

Hard disk Capacity : 80 GB

Keyboard : 101 Keys

Mouse : Optical Mouse

Software Specification:-

Front End : Python

Back End : MySQL

Operating System : Windows XP or above


PROJECT CODE

# Project on Employee Management System

import mysql.connector as driver

import sys

def menu():

loop='y'

while(loop=='y' or loop=='Y'):

print("........MENU.......")

print("1. CREATE DATABASE")

print("2. SHOW DATABASES")

print("3. CREATE TABLE")

print("4. SHOW TABLES")

print("5. INSERT RECORD")

print("6. UPDATE RECORD")

print("7. DELETE RECORD")

print("8. SEARCH RECORD")

print("9. DISPLAY RECORD")

print()

print()

choice=int(input("Enter the choice (1-9) : "))

if(choice==1):

create_database()

elif(choice==2):

show_databases()

elif(choice==3):
create_table()

elif(choice==4):

show_tables()

elif(choice==5):

insert_record()

elif(choice==6):

update_record()

elif(choice==7):

delete_record()

elif(choice==8):

search_record()

elif(choice==9):

display_record()

else:

print("Wrong Choice.")

loop=input("Do you want more try? Press 'y' to continue...")

else:

sys.exit()

def create_database():

con=driver.connect(host='localhost',user='root', passwd='root', charset='utf8')

if con.is_connected():

print("Successfully Connected")

cur=con.cursor()

cur.execute('create database if not exists employee')

print()

print("Database Created")

con.close()
def show_databases():

con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8')

if con.is_connected():

print("Successfully Connected")

cur=con.cursor()

cur.execute('show databases')

for i in cur:

print(i)

con.close()

def create_table():

con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')

if con.is_connected():

print("Successfully Connected")

cur=con.cursor()

cur.execute('create table if not exists emp(id integer primary key, ename varchar(15), salary float)')

print()

print("Table Created -> EMP")

cur.execute('DESC emp')

print("+-------------|--------------|-----------+")

print("+Column Name |DataType(Size)|NULL |")

print("+-------------|--------------|-----------+")

for i in cur:

print('|{0:12} | {1:12} | {2:10}|'.format(i[0],i[1],i[2]))

print("+-------------|--------------|-----------+")

con.close()
def show_tables():

con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')

if con.is_connected():

print("Successfully Connected")

cur=con.cursor()

cur.execute('show tables')

for i in cur:

print(i)

con.close()

def insert_record():

con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')

if con.is_connected():

#print("Successfully Connected")

cur=con.cursor()

ID=int(input("ENTER EMPLOYEE ID : "))

NAME=input("ENTER NAME OF EMPLOYEE : ")

SALARY=float(input("ENTER EMPLOYEE SALARY : "))

query1="INSERT INTO emp(id,ename,salary) VALUES({},'{}',{})".format(ID,NAME,SALARY)

cur.execute(query1)

con.commit()

print('Record Inserted')

con.close()

else:

print("Error : Not Connected")

def update_record():

con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')
cur=con.cursor()

d=int(input("Enter Employee ID for update record : "))

ID=int(input("ENTER NEW EMPLOYEE ID : "))

name=input("ENTER NEW NAME OF EMPLOYEE : ")

salary=float(input("ENTER NEW SALARY FOR EMPLOYEE : "))

query1="update emp set id=%s, ename='%s', salary=%s where id=%s" %(ID,name,salary,d)

cur.execute(query1)

con.commit()

print("Record Updated")

con.close()

def delete_record():

con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')

cur=con.cursor()

d=int(input("Enter Employee ID for deleting record : "))

query1="delete from emp where id={0}".format(d)

cur.execute(query1)

con.commit()

print("Record Deleted")

con.close()

def search_record():

con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')

cur=con.cursor()

print("ENTER THE CHOICE ACCORDING TO YOU WANT TO SEARCH RECORD: ")

print("1. ACCORDING TO ID")

print("2. ACCORDING TO NAME")

print("3. ACCORDING TO SALARY")


print()

choice=int(input("ENTER THE CHOICE (1-3) : "))

if choice==1:

d=int(input("Enter Employee ID which you want to search : "))

query1="select * from emp where id=%s" %(d)

elif choice==2:

name=input("Enter Employee Name which you want to search : ")

query1="select * from emp where ename='%s'" %(name)

elif choice==3:

sal=float(input("Enter Employee Salary which you want to search : "))

query1="select * from emp where salary=%s" %(sal)

else:

print("Wrong Choice")

cur.execute(query1)

rec=cur.fetchall()

count=cur.rowcount

print("Total no. of records found : ",count)

for i in rec:

print(i)

print("Record Searched")

con.close()

def display_record():

con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')

if con.is_connected():

#print("Successfully Connected")

cur=con.cursor()

cur.execute('select * from emp')


rec=cur.fetchall()

count=cur.rowcount

print("+----------|--------------|-----------+")

print("+ Emp ID | Emp Name | Salary |")

print("+----------|--------------|-----------+")

for i in rec:

print('|{0:^9} | {1:12} | {2:10}|'.format(i[0],i[1],i[2]))

print("+----------|--------------|-----------+")

print("+ Total no. of records are : ",count," |")

print("+-------------------------------------+")

#for i in rec:

# print(i)

con.close()

else:

print("Error : Database Connection is not success" )

menu()
Conclusion :
These type of programmes can be usefull for all types of employees like it can
be used in schools , college or universities for managing Various datas in a
pretty concise and secure way.

Bibliography :
1) Internet
2) www.wikipedia.com
3) “Computer Science with Python” by Sumita Arora
4) Our Computer Science Teacher

THANK YOU

You might also like