Question: Question 0 2 - Time Conversion ( 2 0 points ) Write a program to convert the time from 2 4 - hour notation to

Question 02- Time Conversion (20 points)
Write a program to convert the time from 24-hour notation to 12-hour notation and vice versa. Your program must be menu driven, giving the user the choice of converting the time between the two notations and to quit the program. Furthermore, your program must contain at least the following function:
a) a function to convert the time from 24-hour notation to 12-hour notation and returns the new time.
b) a function to convert the time from 12-hour notation to 24-hour notation and returns the new time.
c) a function to display the choices.
d) function(s) to get the input values and returns them.
e) function(s) to display the results. For 12-hour time notation, your program must display AM or PM.; for both times, the program must display each of hours, minutes, and second in two digits.
f) main function that calls all other functions and allows the user to select from the menu more than one time.
Do not use global variables.
Question 0 2 - Time Conversion ( 2 0 points )

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 Programming Questions!