C++ Write a program to convert the time from 24-hour notation to 12-hour notation and vice versa. Your program should be menu driven, giving the
C++ Write a program to convert the time from 24-hour notation to 12-hour notation and vice versa. Your program should be menu driven, giving the user the choice of converting the time between the two notations. For example, it should convert 14:25 to 2:25 PM and 4:55 PM to 16:55. Furthermore, your program must contain at least the following functions: a function to convert the time from 24-hour to 12-hour notation, a function to convert the time from 12-hour notation to 24-hour notation, a function to display the choices (menu), function(s) to get the input and validate it, functions(s) to display the results. For 12-hour time notation, your program must display AM or PM. The program will continue to display the menu for the user to run again or choose exit once they are finished. Do not use any global variables. using Visual studio, please use string functions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started