0

I am a student and am having trouble getting my for statement to work with an array. This is my first time here. Here is what have so far. Any tips would be greatly appreciated.

```
using namespace std;
void main()
{#include <iostream>
// Emp is number of employees needed for each hour in the array.
// Each value in the array represents the number of customers present at each hour
// The equation for number of employees is 3 + 1 added for each additional 20 customers
// Counter variable is Hour
int Emp=0;
int Cust [24] = {96,112,45,12,0,24,32,36,196,20,25,200,187,96,34,67,107,224,107,98,19,30,45,60}; // 24 values for each hour of the day
for (int Hour=1; Hour <= 24; Hour++)
{
Emp = Cust/20 + 3;
if (Cust%20=0) //Modular division tells if Customers is evenly divided
{
Emp = Emp-1;// Any value disvisible by 20- take 1 employee away because three employees can handle the first 20
}
//cout // need to output the Hour, number of Customers and number of employees needed
}
return;
}
```