#define MaxRegularHours 40
#define OvertimeFactor 1.5
double calcNetPay(double hours, double rate) {
if (hours <= MaxRegularHours) return hours * rate;
return MaxRegularHours * rate +
(hours - MaxRegularHours) * rate * OvertimeFactor;
} //end CalcNetPay
#Calculate Pay #maaş hesaplama