0

the program below is what i have...it compiles and runs but the problem is when it runs it asks Enter the number of employees which is fine but then it asks Enter days missed which is also find but it should calculate the average days missed but it keeps returning the message enter days missed....iwhat do i do from here??? please help ASAP

```
#include <iostream>
#include <stdlib.h>
#include <math.h>
using namespace std;
int getnumemployees();
int getdaysmissed(int num_employees);
double getdaysmissedavg(int num_employees,int days_missed);
int main ()
{
int number_of_employees=0;
int totaldaysmissed=0;
double average_days_missed=0;
number_of_employees=getnumemployees();
totaldaysmissed = getdaysmissed(number_of_employees);
average_days_missed = getdaysmissedavg(number_of_employees,totaldaysmissed);
return 0;
}
int getnumemployees()
{
int numemployees=0;
cout<<"Enter the number of employees: "<<endl;
cin>>numemployees;
return numemployees;
}
int getdaysmissed(int num_employees)
{
int daysmissed=0;
int totaldaysmissed = 0;
while (num_employees>=1)
{
cout<<"Enter days missed: "<<endl;
cin>>daysmissed;
totaldaysmissed += daysmissed;
num_employees--;
}
return daysmissed;
}
double getdaysmissedavg(int num_employees, int days_missed)
{
int numemployees=0;
int daysmissed=0;
double daysmissedavg=0;
daysmissedavg=numemployees/daysmissed;
cout<<"Calculate the average number of days absent "<<daysmissedavg;
system("pause");
return 0;
}
```

`