Project Synopsis On Payroll
Project Synopsis On Payroll
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
HARDWARE:
Processor : Pentium ® G2030 @
3.70 GHz
SOFTWARE:
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