Question: Addition ( + ) : combines the seconds, minutes, hours, and days of two clocks and returns a third clock that correctly displays the combined

Addition (+): combines the seconds, minutes, hours, and days of two clocks and returns a third clock that correctly displays the combined values adhering to the note above.
Subtraction (-): takes seconds, minutes, hours, and days from one clock away from another and returns a third clock with the resulting seconds, minutes, hours, and days. Note that clocks may display negative time.
Negation (-): flips the sign of all the private data members on a clock.
Equals (==): compares two clocks and returns true if the clocks have the same seconds, minutes, hours, and days. It returns false otherwise.
Less Than (<): compares two clocks and returns true if the first clock has less time on it. It returns false otherwise.
Greater Than (>): compares two clocks and returns true if the first clock has more time on it. It returns false otherwise.
Insertion (

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 Databases Questions!