Question: Four doubles are read from input, where the first two doubles are the working hours and vacation hours of punchCard 1 and the second two

Four doubles are read from input, where the first two doubles are the working hours and vacation hours of punchCard1 and the second two doubles are the working hours and vacation hours of punchCard2. Complete the function to overload the - operator.
Ex: If the input is 11.010.02.06.0, then the output is:
11 working hours, 10 vacation hours 2 working hours, 6 vacation hours Difference: 9 working hours, 4 vacation hours
Note: The difference of two time cards is:
the difference of the number of working hours
the difference of the number of vacation hours

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!