February 25th, 2011, 01:45 PM
i was passing [row] instead of [r]. [row] is an empty field!
February 19th, 2011, 01:25 PM
Didn't even notice that! Silly error.
Corrected it:-
if ( customers[row].hours >= 37.5 )
{
customers[row].ohours = customers[row].hours - 37.5;
customers[row].hours = 37.5;
}...
February 19th, 2011, 09:07 AM
if 40 hours are worked, it should calculate 37.5 at normal rate and 2.5 at overtime rate of time and a half.
if 37.5 hours are worked it should just calculate 37.5 * rate. However if 38 are worked,...
February 19th, 2011, 08:30 AM
I have attached the c++ code file and the header file I'm using to compile it.
The program has to take in employee details, and work out a wage slip from there.
The problem is from line 112 - 120,...