Question: 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

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!