this is what i have, if anyone can help that wil be absoloutely great
Code:
#include <stdio.h>
#include <stdlib.h>
int main ()
{
char wage;
int count, hours_worked, num, overtime, overtime_extra, total ;
void calculate (char, int);
printf("Enter the number of employee's \n");
scanf("%d", &num);
fflush(stdin);
count=1;
for(count; count<= num;count++)
{
printf("Enter your hourly pay>");
scanf("%d", &wage);
fflush(stdin);
printf("Enter the number of hours you have worked here>");
scanf("%d", &hours_worked);
fflush(stdin);
calculate (wage, hours_worked);
}
if(hours_worked>40)
{
overtime = hours_worked-40;
overtime_extra = (wage*1.5)*overtime;
total = overtime_extra + (wage*40);
}
else
{
total = hours_worked * wage;
}
}