Bonafde Certifcate This is to certify that ……………………………………………………………….. ………………………………………… …………………….. is a certied student of class XIIth of Rani Laxmi Bai Memorial Seniour Secondry School aliated by BS! board and has successfully com"leted the "ro#ect on Payroll Management system under the $uidance of com"uter faculty Mrs. %&'TIMa(am. %&'TIMa(am.
Teacher’s Signature:……………………………………. Principal’s Principal’s Signature:……………………… Signature:……………………………………. …………….
1
ACKNOWLEDGME ACKNOWLEDGMENT NT
I express express my acknowledgment with deep sense of gratitude for my project project guide or faculty Mrs. JYOTI ma”am for his full support and effective guidance which have provided immense help in my training period. His constant inspiration and valuable time throughout the project project development made it feasible and easy to make the project project a success and in a very good way. way.
Last but not the least, I would acknowledge my immense regards for my parents and my family whose constant encouragement and support was the main source source of energy and hard work behind this project. project.
2
INTOD!CTION The payroll management system is mainly concerned to keep track of various steps that are undertaken by the payroll department of the co-operates and organizations. In project payroll management system the client wants a system that can be used to check the records that the projects had made which the project had made and can handle the tasks of payroll department. The client of the project can monitor progress made by the developing organization. He will be authorized to check the progress of all the records running under the organization The main aim of this project is to reduce the manual work of the staff thus increasing the efficiency of the existing workflow. The are very much chances ch ances of errors in record maintainace. The record of the employee can be maintained safe in digital form moreover user can search his record and can even modify it according to its need. This can be performed by using the employee id. The main modules used in this program are!
3
"ard#are and $o%t#are e&'irement To To run this project successfully following are are the requirements (minimum requirement) of hardware and software that must exist:
Hardware Requirements:
Coloured Monitor Pentium 3 Pentium ! or higher capacity processor "am(#$% M&) or higher 'ard dis pace *+& minimum
Software Requirement:
,indows -.#///xp or higher operating ystem Tur0o Tur0o c11 compiler or 2isual &asics &asics %/
4
Coding and O't('t
5
CODING /* program for employee record and payroll management */
#include
#include #include #include
struct emp //definng structure for keeping the record of the employee { int id char nm!3"$do%!1"$address!&"$'o%!25 float sal$hra$da$ta$netsal (
class employee { emp e pu%lic) *oid add+data,- &
*oid modify+data,- *oid search+data,- *oid delete+data,- *oid sho+data,- (
/* function to add employee record */
*oid employee))add+data,{ ofstream f,emp.t0t$ios))appios))%inary- f,emp.t0t$ios))appios))%inary- cout<<nenter the employee id) cin>>e.id cout<<nenter the employee name) cin.getline,e.nm$3"- cout<<nenter the date of %irth) cin.getline,e.do%$1"- cout<<nenter the address) cin.getline,e.address$&"- cout<<nenter the occupation) cin.getline,e.'o%$25- cout<<nenter the salary) cin>>e.sal if,e.sal<5"""{ e.da1"" e.ta3"" e.hra5"" ( else if,e.sal>5""" e.sal<155""{ e.da3"" e.ta5"" e.hra"" ( else { e.da5"" e.ta"" e.hra1""" ( 6
e.netsale.sal7e.da7e.ta7e.hra f.rite,,char 8-e$si9eof,e-- f.close,- (
/* function to show all records of all the employee */
*oid employee))sho+data,employee))sho+data,{ ifstream f,emp.t0t$ios))inios))%inary- f,emp.t0t$ios))inios))%inary- if,:f{ cout<<there is no record return ( hile,f.read,,char 8-e$si9eof,e--{ cout<<nthe employee id) <
/* function to search search the record record of a particular particular employee employee on the basis basis of employee id */
*oid employee))search+data,{ int id1 ifstream f,emp.t0t$ios))inios))%inary- f,emp.t0t$ios))inios))%inary- if,:f{
cout<<there is no record return ( f.seekg,"- cout<<nenter the id) cin>>id1 hile,f.read,,char 8-e$si9eof,e--{ if,id1e.id{ cout<<nthe employee id) <
/* function to delete a particular record of the employee */
*oid employee))delete+data,employee))delete+data,{ int id1 ifstream f,emp.t0t$ios))%inary- if,:f{ cout<<nthere is no any record return ( ofstream k,temp.t0t$ios))%inary- k,temp.t0t$ios))%inary- cout<<nenter the id) ;
cin>>id1 hile,f.read,,char 8-e$si9eof,e--{ if,id1:e.id{ k.rite,,char 8-e$si9eof,e-- ( if,id1e.id{ cout<<nrecord deletedn ( ( k.close,- f.close,- remo*e,emp.t0t- rename,temp.t0t$emp.t0t- (
/* function to modify a particular particula r record of the employee */
*oid employee))modify+data employee))modify+data,,{ int id1 ifstream f,emp.t0t$ios))%inary- if,:f{ cout<<there is no record return ( ofstream k,temp.t0t$ios))%inary- k,temp.t0t$ios))%inary- cout<<nenter the id cin>>id1 hile,f.read,,char 8-e$si9eof,e--{ if,id1e.id{ cout<<nrecord found cout<<nenter the employee name) cin>>e.nm cout<<nenter the date of %irth) cin>>e.do% 1"
cout<<nenter the address) cin>>e.address cout<<nenter the occupation) cin>>e.'o% cout<<enter the salary) cin>>e.sal if,e.sal<5"""{ e.da1"" e.ta3"" e.hra5"" ( else if,e.sal>5""" e.sal<155""{ e.da3"" e.ta5"" e.hra"" ( else { e.da5"" e.ta"" e.hra1""" ( e.netsale.sal7e.da7e.ta7e.hra cout<<nrecord modified successfullyn ( k.rite,,char 8-e$si9eof,e-- ( k.close,- f.close,- remo*e,emp.t0t- rename,temp.t0t$emp.t0t- (
*oid main,{ clrscr,- int i employee et hile,111
{ cout<<n menu cout<<n 1.- enter the record cout<<n 2.- search the record cout<<n 3.- modify the record cout<<n 4.- delete the record cout<<n 5.- sho all the record cout<<n &.- e0it cout<<n enter the choice) cin>>i sitch,i{ case 1) et.add+data,- %reak case 2) et.search+data,- %reak case 3) et.modify+data,- %reak case 4) et.delete+data,- %reak case 5) et.sho+data,- %reak case &) e0it,"- default) cout<<rong choice ( ( getch,- (
12
O!TP!T menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 1 enter the employee id) 1"" enter the employee name) akhil *erma enter the date of %irth) 1&=1"=1;;" enter the address) plot no.1$ pragti *ihar$ kalyanpur est$ luckno enter the occupation) programmer enter the salary)2""" 13
menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 1 enter the employee id) 1"1 enter the employee name) sneha ulal enter the date of %irth) 11="&=1;;; 11="&=1;;; enter the address) 1/&54$*ikas nagar$ luckno enter the occupation) ad*iser enter the salary)4""" menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 1 enter the employee id) 1"2 enter the employee name) madhu singh enter the date of %irth) "3="3=1;;1 enter the address) a=3"$ a= 3"$ ahilya %ai nagar$kalyanpur est enter the occupation) saler enter the salary)3"""
14
menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice)2 enter the id)1"1 the employee id) 1"1 the employee name) sneha ulal the date of %irth) 11="&=1;;; 11="&=1;;; the address) 1/&54$*ikas nagar$ luckno the occupation) ad*iser %asic sal) 4""" da) 1"" ta) 3"" hra) 5"" net salary) 4;"" menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 2 enter the id)1"2 the employee id) 1"2 the employee name) madhu singh the date of %irth) "3="3=1;;1 the address) a=3"$ ahilya %ai nagar$kalyanpur nagar$kalyanpur est the occupation) saler %asic sal) 3""" da) 1"" ta) 3"" hra) 5"" 15
net salary) 3;"" menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 2 enter the id)1"" the employee id) 1"" the employee name) akhil *erma the date of %irth) 1&=1"=1;;" the address) plot no.1$ pragti *ihar$ kalyanpur kalyanpur est$ luckno the occupation) programmer %asic sal) 2""" da) 1"" ta) 3"" hra) 5"" net salary) 2;"" menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 5 the employee id) 1"" the employee name) akhil *erma the date of %irth) 1&=1"=1;;" the address) plot no.1$ pragti *ihar$ kalyanpur kalyanpur est$ luckno the occupation) programmer %asic sal) 2""" da) 1"" ta) 3"" hra) 5"" 1&
net salary) 2;"" the employee id) 1"1 the employee name) sneha ulal the date of %irth) 11="&=1;;; 11="&=1;;; the address) 1/&54$*ikas nagar$ luckno the occupation) ad*iser %asic sal) 4""" da) 1"" ta) 3"" hra) 5"" net salary) 4;"" the employee id) 1"2 the employee name) madhu singh the date of %irth) "3="3=1;;1 the address) a=3"$ ahilya %ai nagar$kalyanpur nagar$kalyanpur est the occupation) saler %asic sal) 3""" da) 1"" ta) 3"" hra) 5"" net salary) 3;"" menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 3 enter the id) 1"" enter the employee name) akhil singh enter the date of %irth) 1&=1"=1; enter the address) plot no.1$ pragti *ihar$ kalyanpur est$ luckno enter the occupation) assistant programmer 16
enter the salary)2""" record modified successfully menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 5 the employee id) 1"" the employee name) akhil singh the date of %irth) 1&=1"=1; the address) plot no.1$ pragti *ihar$ kalyanpur kalyanpur est$ luckno the occupation) assistant programmer %asic sal) 2""" da) 1"" ta) 3"" hra) 5"" net salary) 2;"" the employee id) 1"1 the employee name) sneha ulal the date of %irth) 11="&=1;;; 11="&=1;;; the address) 1/&54$*ikas nagar$ luckno the occupation) ad*iser %asic sal) 4""" da) 1"" ta) 3"" hra) 5"" net salary) 4;"" the employee id) 1"2 the employee name) madhu singh the date of %irth) "3="3=1;;1 the address) a=3"$ ahilya %ai nagar$kalyanpur nagar$kalyanpur est the occupation) saler %asic sal) 3""" 1
da) 1"" ta) 3"" hra) 5"" net salary) 3;"" menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 4 enter the id) 1"" record deleted menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 5 the employee id) 1"1 the employee name) sneha ulal the date of %irth) 11="&=1;;; 11="&=1;;; the address) 1/&54$*ikas nagar$ luckno the occupation) ad*iser %asic sal) 4""" da) 1"" ta) 3"" hra) 5"" net salary) 4;"" the employee id) 1"2 the employee name) madhu singh the date of %irth) "3="3=1;;1 the address) a=3"$ ahilya %ai nagar$kalyanpur nagar$kalyanpur est 1;
the occupation) saler %asic sal) 3""" da) 1"" ta) 3"" hra) 5"" net salary) 3;"" menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 4 enter the id) 1"1 record deleted menu 1.- enter the record 2.- search the record 3.- modify the record 4.- delete the record 5.- sho all the record &.- e0it enter the choice) 5 the employee id) 1"2 the employee name) madhu singh the date of %irth) "3="3=1;;1 the address) a=3"$ ahilya %ai nagar$kalyanpur nagar$kalyanpur est the occupation) saler %asic sal) 3""" da) 1"" ta) 3"" hra) 5"" net salary) 3;""
2"
Bi)iliogra(*y
om"uter Science )ith ** Sumita ,rora
+
-ettin$ Started ith ** !. Bala$rusamy
+
21