Modify the Time class of Fig. 6.10 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. Write a driver 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: a) Incrementing into the next minute. b) Incrementing into the next hour. c) Incrementing into the next day (i.e., 11:59:59 PM to 12:00:00 AM). Hint: you need to modify the time3.h file Sample output: 11:59:57 PM . . . . . 12:49:50 AM 12:49:51 AM 12:49:52 AM 12:49:53 AM 12:49:54 AM 12:49:55 AM Important: You need to submit two files. Make sure you submit your .h and .cpp files.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. 40 Finish on time and answer any questions or make any changes necessary
Windows XP Will need a cpp file and a .h file