Question: Write a header file, implementation file, and main program in which you create a Clock class, and then use your class in a menu -

Write a header file, implementation file, and main program in which you create a Clock class, and then use your class in a menu-driven program. The menu should contain:
Set the Time
Display the Current Time
Advance One Hour
Advance One Minute
Quit
Time should be displayed and entered in the following format: 3:42pm
Data will not be stored in this format. You will need to store the hour, minute, and ampm flag separately.
When data is entered in this format, it is up to you, the programmer, to parse this string and process it accordingly (making sure the data is good).
 Write a header file, implementation file, and main program in which

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!