here is my code, im still getting an error and had no idea what to do! what im trying to do is to make 4 function to get the total net of a certain employee, wherein I could loop and used the form as many times as the no. I input in no. of employee...where in it could process the employee position, the hours late and days work which has a rate as indicated in my program to get the gross,
and secondly by deducting the total salary deduction to get the total net of a certain employee...hope this clears out my intentions!thank
# include <iostream.h>
void company_name(void);
int no_emp();
main ()
{
int company_name(void);
int no_emp(int e);
return 0;
}
void company_name(void)
{
cout<<"Company Name \n";
}
int no_emp(int e)
{
cout<<"enter no. of employee:";
cin>>no_emp(int e);
return (no_emp);
int loop (no_emp);
}
int x,rate;
char pos;
int loop (no_emp)
{
for (x=1;x<=e;x++);
{
cout<<"M-Manager S-Supervisor T-Staff \n";
cout<<"Position";cin>>pos;
if(pos=='m'){rate=400;}
else if (pos=='s'){rate=350;}
else{
rate=300;}
return 0;}
double dw,hl,gross,sss=300,net,misc=100,sd;
double tax;
cout<<"Enter Days of worked";
cin>>dw;
cout<<"Enter Hours Late";
cin>>hl;
hl=(rate/8)*hl;
gross=rate*dw;
cout<<"Salary Deduction\n";
cout<<"SSS:"<<sss<<"\n";
tax=gross*.10;
cout<<"Tax:"<<tax<<"\n";
cout<<"Miscellaneous:"<<misc<<"\n";
cout<<"Late"<<hl<<"\n";
sd=sss+tax+pagibig+hl;
net=gross-sd;
cout<<"NET:"<<net;
return (e);
}