hours of work logic..
what is the algorithm for time in and time out for a payroll system.. to solve for hours of work .. pls help me thaks an God bless
cin >> timeIn;
cin >> timeOut
cout << "Hours worked" << timeOut - timeIn;
Do you have any ideas?
I have one:
HoursWorked = TimeFinished - TimeStarted;
Can you think of a data structure to put those in?
Don't take too long for lunch.
Topic archived. No new replies allowed.