#include <iostream>
#include <string>
#include <stdlib.h>
#include <limits>

using namespace std;


//create Staff struct
struct Staff {
	string name;
  	string ic;
  	double overtimeRatePerhour;
  	double hourlyRate;  
  	int totalOvertimeHours;
  	int totalWorkingDays;
};

Staff getstaffData();

//function prototype for input staff data returning a Staff struct

void total_OT(staff,double&);
// function prototype - past by reference (pbf) to count total overtime payment
void total_hour(staff,double&);
// function prototype - past by reference (pbf) to count total hourly payment
void total_payment(staff,double&);
// function prototype - past by reference (pbf) to count total payment


int main(void) 
{
	cont int SIZE = 5;
	Staff staffs[SIZE], staff;
	
	int total = -1;
	char answer; 
	
	do {
		total++;
		
		if (total <= 5) {
			
			Staff data =
			{
				staff_name();
				staff_ic();
				total_OT();
				total_hour();
				total_payment();
			}
			
			//complete code here
			
			//call struct function returning a function
			
			//add the struct return from function code above to array staffs
			
		} else {
			
			//complete code here
			
		}
	} while (answer == 'y' || answer == 'Y');
	
	//for loop here to display the struct array
	// and also to count the wage using the pbf function and display them	
							     
    return 0;
}

char staff_name()
{
	cout << "Enter Name: ";
	cin.get(staff_name,50);
}
int staff_ic()
{
	cout << "Enter Staff IC: ";
	cin.get(staff_ic,50);
}
//function definition for input staff data returning a Staff struct
void total_OT()
// function definition - past by reference to to count total overtime payment

// function definition - past by reference to to count total hourly payment

// function definition - past by reference to to count total payment
