Question: Problem # 1 Write a program to convert the time from 24-hour notation to 12-hour notation and vice versa. Your program must be menu driven,

 Problem # 1 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

Problem # 1 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. Furthermore, your program must contain at least the following function: a function to convert the time from 24-hour notation to 12-hour notation, a function to convert the time from 12-hour notation to 24-hour notation, a function to display the choices, function(s) to get the input, and function(s) to display the results. (For 12-hour time notation, your program must display AM or PM.) Answer: 1.#include 2.using namespace std 3.void input(int& hours, int& minutes); 4void outputfint hours, int minutes, char type): S.int convertlo12Hourfint hours, char& type); 6.int main0 Zint hours 8.int minutes 9char type: 10.char answer: 1do

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!