Develop an object-oriented programming (OOP) application to create two clocks that display simultaneously and allow for user input using secure and efficient C++ code.1. Clock12: Time should be displayed in 12-hour format where the clock does not exceed 12:59:59.
2. Clock24: Time should be displayed in 24-hour format where the clock does not exceed 23:59:59.
3. Both clocks should display on the screen with the current time in the proper format.
Any clue where to even start?
Title: Clocks Flowchart
Top of chart begins: "Clear Screen"
"Display time in two formats".
Decision: "Button Pressed?"
If "No" to button pressed, then to "Add 1 Second". Then "Wait 1 second". Then back to "Clear Screen".
If "Yes" to button pressed, then to "Display Menu". Then "Read user input". Then to Decision: "User input = exit?".
If "Yes" to exit, then endpoint: "End program".
If "No" to exit, then Decision: "Add Hour?"
If "Yes" to hour, then "Add 1 hour." Then back to "Clear screen".
If "No" to hour, then Decision: "Add Minute?".
If "Yes" to minute, then "Add 1 minute." Then back to "Clear screen".
If "No" to minute, then Decision: "Add Second?".
If "Yes" to second, then "Add 1 Second." Then back to
"Clear screen".
If "No" to second, then back to "Clear screen".