#include <iostream>

using namespace std;

int main ()
{
	int employees, repeat;
	float OT, gross_pay, net_pay, hours , rate , total_net ;
	employees = 0;
	total_net = 0;
	repeat = 1;
	
	while ( repeat == 1 )
	{
		cout<<" Working Hours :";
		cin>>hours;
		cout<<"\n";
		
		cout<<" Working rate :";
		cin>>rate;
		cout<<"\n";
		
		
		if ( hours > 40 )
		{
			OT = ( hours - 40 ) * 1.5 * rate;
			gross_pay = (40 * rate) + OT;
		}
		else
		{
			gross_pay= hours * rate ;
		}
		
		if (gross_pay > 1500 )
		{
			net_pay = gross_pay - ( 0.1 * gross_pay);
		}
		else
		{
			net_pay = gross_pay;
		}
		
		total_net = total_net + net_pay ;
		employees = employees + 1 ;
		
		cout<<"Do you still have employeee ? 1 to continue , 0 to end ";
		cin>> repeat;
    }
    
    cout<<"Total Employees : "<< employees<<endl;
    
    cout<<"Total NetPay : " << total_net << endl;

	}
	
