0% found this document useful (0 votes)
61 views5 pages

C++ Project On Payroll Management

Uploaded by

Gameo Craft
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)
61 views5 pages

C++ Project On Payroll Management

Uploaded by

Gameo Craft
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/ 5

C++ Project on Payroll Management

Software Development - Contact


us for a consultation
we have gained experience in
developing on a variety of scales and
systems
Ad rikkeisoft.com Visit Site

Submitted by  Editor
Payroll Management
#include
#include
#include
#include
#include
#include
#include
#include

struct roll
{
char na[20],des[20];
int co;
float sal,tax,hra,gr,da,np;
}oll;
fstream pay;
char c;
int l;
char choice;

void dev()
{
clrscr();
for(int
for int x=50;x>=20;x--)
{
textcolor(WHITE+LIGHTGRAY);
delay(160);
gotoxy(x,12);
cputs(" P R O J E C T ");
gotoxy(x,14);
cputs(" D E V E L O P E D B Y : ");
gotoxy(x,16);
cputs("Navi");

}
gotoxy(x,24);
cputs("PRESS ANY KEY TO CONTINUE");
getch();
}
void main()
{
clrscr();
dev();
int gdriver=DETECT,gmode,errorcode;
initgraph(&gdriver,&gmode,"c:\\tc\\bgi");
errorcode=graphresult();
if(errorcode!=grOk)
if
{
cout< >eno;
pay.open("oll.dat",ios::in
in);
if(!pay)
if
{
cout< <"\n\nFile Not Found...\nProgram Terminated!";
exit(0);
}
pay.seekg(0);
while(!pay.eof())
while
{
pay.read((char
char*)&oll,sizeof
sizeof(oll));

if
if(!pay.eof())
{
if(oll.co==eno)
if
{
cout<<"\n*********************************************";
cout<<"\n SUSHMA ENTERPRISES ";
cout<<"\n*********************************************";
cout<<"\nEMPLOYEE CODE :"<>oll.na;
cout< <"\n EMPLOYEE CODE";
cin>>oll.co;
cout< <"\n EMPLOYEE DESIGNATION:";
int ch;
cout<<"\n1.SUBSTAFF";
cout<<"\n2.CLERK";
cout<<"\n3.MANAGER";
cout<<"\n ENTER YOUR CHOICE:(1/2/3)";
cin>>ch;
switch(ch)
switch
{
case 1:
oll.sal=1000;
oll.hra=100;
oll.da=oll.sal*1.10;
oll.tax=2*(oll.sal)/100.0;
strcpy(oll.des,"SUBSTAFF");
break
break;
case 2:

oll.sal=2000;
oll.hra=200;
oll.da=200;
oll.tax=10*(oll.sal)/100.0;
strcpy(oll.des,"CLERK");
break;
break
case 3:
oll.sal=14000;
oll.hra=400;
oll.da=400;
oll.tax=20*(oll.sal)/100.0;
strcpy(oll.des,"MANAGER");
break;
break
default:cout< <"\n INPUT IS INVALID";
default
break;
break
}
oll.gr=oll.sal+oll.hra+oll.da;
oll.np=oll.gr-oll.tax;
pay.write((char
char*)&oll,sizeof
sizeof(oll));
cout<<"\n TO CONTINUE ADDING DATA(Y/N):";
cin>>c;
}while
while((c=='Y')||(c=='y'));
pay.close();
break;
break
case'4':
case
exit(0);
}
}
while(choice!=4);
while

closegraph();
}



 Add Your Comment - Guidelines


You can express your opinion or reaction in the form below!

Write a comment...

100 characters required

 Login and submit


Software Development
Contact us for a consultation

we have gained experience in developing


on a variety of scales and systems
rikkeisoft.com

OPEN

0 Comments:

Be the first one to comment!

You may also want to see:

Project on Communication Facilities for Disaster Management

Project on "Pocket Guide on First Aid" for Disaster Management Project

1 Payroll Check Template

2 Employee Time Sheet Forms

3 Free Payroll Templates

4 Best Online Schools

5 Payroll Deduction Authorization Form

QUOTE OF THE DAY


 The beautiful thing about learning is that no one can take it away from you. - B. B. King
November 28th, 2019 - Thursday

...

CBSE Syllabus Stay in Touch About CBSE © Copyright 2019


CBSE Date Sheet Disclaimer: iCBSE.com is not associated
Facebook Privacy Policy with Central Board of Secondary Education,
Improvement Exam New Delhi. Trademarks belong to the
Love Writing?
Twitter Terms of Service respective owners.

Youtube Disclaimer
LinkedIn Contact us

You might also like