Question: C++ b) (Enhancing Class Time) Please modify the Time class of Figs. 9.8-9.9 to include a tick member function that increments the time stored in

C++
b) (Enhancing Class Time) Please modify the Time class of Figs. 9.8-9.9 to include a tick member function that increments the time stored in a Time object by one second. The Time object should always remain in a consistent state. Please write a program that tests the tick member function in a loop that prints the time in standard format during each iteration of the loop to illustrate that the tick member function works correctly. Be sure to test the following cases o Incrementing into the next minute o Incrementing into the next hour o Incrementing into the next day (i.e., 11:59:59 PM to 12:00:00 AM) Sample Output 11:59:57 PM 11:59:58 PM 11:59:59 PM 12:00:00 AM 12:00:01 AM 12:00:02 AM 12:00:03 AM 12:00:04 AM 12:00:05 AM 12:00:06 AM 12:00:07 AM 12:00:08 AM 12:00:09 AM 12:00:10 AM 12:00:11 AM 12:00:12 AM 12:00:13 AM 12:00:14 AM 12:00:15 AM 12:00:16 AM 12:00:17 AM 12:00:18 AM 12:00:19 AM 12:00:20 AM 12:00:21 AM 12:00:22 AM 12:00:23 AM 12:00:24 AM 12:00:25 AM
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
