Question: A 4 Modify the Time class ( attached ) to be able to work with Date class. The Time object should always remain in a
A
Modify the Time classattached to be able to work with Date class. The Time object should always remain in a consistent state.
Modify the Date classattached to include a Time class object as a composition, a tick member function that increments the time stored in a Date object by one second, and increaseADay function to increase day, month and year when it is proper. Please use CISPVAcpp that tests the tick member function in a loop that prints the time in standard format during iteration of the loop to illustrate that the tick member function works correctly. Be aware that we are testing the following cases:
a Incrementing into the next minute.
b Incrementing into the next hour.
c Incrementing into the next day ie:: PM to :: AM
d Incrementing into the next month and next year.
Time class
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
