Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started