Question: Four doubles are read from input, where the first two doubles are the minutes and seconds of time 1 and the second two doubles are

Four doubles are read from input, where the first two doubles are the minutes and seconds of time1 and the second two doubles are the minutes and seconds of time2. Define the function to overload the - operator.
Ex: If the input is 11.018.53.013.3, then the output is:
11 minutes, 18.5 seconds 3 minutes, 13.3 seconds Difference: 8 minutes, 5.2 seconds
Note: The difference of two time values is:
the difference of the number of minutes
the difference of the number of seconds

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!