0% found this document useful (0 votes)
23 views22 pages

Project Synopsis On Payroll

Uploaded by

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

Project Synopsis On Payroll

Uploaded by

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

Project

synopsis on
payroll
management
system

TEAM MEMBERS:
• ADITHI SHREE.S
• KRISHNENDHU .CS
• SHIVAANI AARTHINI.R
• VINEETH.K
ACKNOWLEDGEME
NT
• I feel proud to present our computer
science project on the topic "payroll
management system" which AIMS that
using Python and SQL as frontend and
backend.
• My sincere thanks to Mrs.R.Shaila,
our Principal mam for her coordination
in extending every possible support for
completion of this project.I hope that
this project will prove to be a breeding
ground for next generation of students
and will guide them in every possible
way.
• This project wouldn’t have been
achievable without the proper guidance
of our computer science teacher Mrs.
P. Lakshmi Priya who guided us
throughout this project in every
possible way.
• The success and final outcome of
this project required a lot of guidance
and assistance from many people. All
that I have done is only due to such
supervision and assistance and we
would not forget to thank them.
SYNOPSIS

• The proposed project “payroll management


system” has been developed to overcome
the problems faced in the practicing of
manual system.
• A payroll management system is a software
that is use to manage all employee’s
financial records in a simple and automated
fashion.
• This payroll management system manages
employee’s salaries, deductions, other
conveyance, net pay, bonuses and
generation of pay slips, etc.
• This software is built to eliminate and in
some cases reduce the hardships faced by
the existing system.
• Moreover, this system is designed for
particular need of the company to carry out
its operations in a smooth and effective
manner.
HARDWARE AND
SOFTWARE
SPECIFICATIONS

HARDWARE:
Processor : Pentium ® G2030 @
3.70 GHz

Processor speed : 533 MHz

RAM : 2GB or more

Hard disk : 2.00 GB

SOFTWARE:

Operation System : Windows 7 or


above

IDE : IDLE Python

Front end : Python 3.6 or above

Back end : MySQL server 5.0 or


above
CODING
import mysql.connector as sql
from tabulate import tabulate
mycon=sql.connect(host="localhost",user="root",passwo
rd="adithi",database="payroll")
mycur=mycon.cursor()
print("-"*65)
print(" main menu
")
print("-"*65)
while True:
print("THE CHOICES ARE....:")
print("1.adding employees records")
print("2.displaying records of a particular employee")
print("3.deleting record of a particular employee")
print("4.modification in a record")
print("5.displaying records of all the employees")
print("6.deleting record of all the employees")
print("7.exit")
print("enter choice...:",end='')
choice=int(input())
if choice==1:
try:
print("enter employee information.....")
mempno=int(input("enter employee no:"))
mname=input("enter employee name:")
mjob=input("enter employee job:")
mbasic=float(input("enter basic salary:"))
if mjob.upper()=='OFFICER':
mda=mbasic*0.5
mhra=mbasic*0.35
mtax=mbasic*0.2
elif mjob.upper()=='MANAGER':
mda=mbasic*0.45
mhra=mbasic*0.30
mtax=mbasic*0.15
else:
mda=mbasic*0.40
mhra=mbasic*0.25
mtax=mbasic*0.1
mgross=mbasic+mda+mhra
mnet=mgross-mtax

rec=(mempno,mname,mjob,mbasic,mda,mhra,mgross,m
tax,mnet)
query="insert into pay values(%s,%s,%s,%s,%s,%s,
%s,%s,%s)"
mycur.execute(query,rec)
mycon.commit()
print("records added successfully")
except:
print("something went wrong")
elif choice==2:
try:
en=input("enter employee no of the record to be
displayed..")
query= "select * from pay where empno= "+en
mycur.execute(query)
data=mycur.fetchone()
print("record of employee no:"+en)
print(data)
c=mycur.rowcount
if c==-1:
print("nothing to display")
except:
print("something went wrong")
elif choice==3:
try:
en=input("enter employee no of the record to
be deleted...:")
query="delete from pay where empno="+en
mycur.execute(query)
mycon.commit()
c=mycur.rowcount
if c>0:
print("deletion done")
else:
print("employee no",en,"not found")
except:
print("something went wrong")
elif choice==4:
try:
en=input("enter employee no of the record to be
modified:")
query="select * from pay where empno="+en
mycur.execute(query)
myrec=mycur.fetchone()
c=mycur.rowcount
if c==-1:
print("empno"+en+"does not exist")
else:
mname=myrec[1]
mjob=myrec[2]
mbasic=myrec[3]
print("empno :",myrec[0])
print("name :",myrec[1])
print("job :",myrec[2])
print("basic :",myrec[3])
print("da :",myrec[4])
print("hra :",myrec[5])
print("gross :",myrec[6])
print("tax :",myrec[7])
print("------------------")
print("type value to modify below or just press
enter for no change")
x=input("enter name")
if len(x)>0:
mname=x
x=input("enter job")
if len(x)>0:
mjob=x
x=input("enter basic salary")
if len(x)>0:
mbasic=float(x)
query='update pay set
name='+"'"+mname+"'"+','+'job='+"'"+mjob+"'"+','+'basics
alary='\
+str(mbasic)+'where empno='+en
print(query)
mycur.execute(query)
mycon.commit()
except:
print("something went wrong")
elif choice==5:
try:
query="select *from pay"
mycur.execute(query)

print(tabulate(mycur,headers=['empno','name','job','basi
csalary',

'da','hra','grosssalary','tax','netsalary'],tablefmt='fancy_g
rid'))
'''myrec=mycur.fetchall()
for rec in myrec:
print(rec)'''
except:
print("something went wrong")
elif choice==6:
try:
ch=input("do u want to delete all the
records(y/n)")
if ch.upper()=="Y":
mycur.execute("delete from pay")
mycon.commit()
print("all the records are deleted...")
except:
print("something went wrong")
elif choice==7:
break
else:
print("wrong choice...")
OUTPUT
Bibliography

■ computer science book class 12


■ computer science book class 11
■ www.google.com
■ www.youtube.com

You might also like