Question: Write a program that converts from 24-hr notation to 12-hour notation. For example, it should convert 14: 25 to 2:25 P.M. The input is given

Write a program that converts from 24-hr notation to 12-hour notation. For example, it should convert 14: 25 to 2:25 P.M. The input is given as two integers.

There should be at lease three functions: one for input, one to do the conversion and one for out put. Record the A.M./P.M. information as a value of type char

'A' for A.M. and 'p' for P.M. Thus, the function for doing the the conversions will have a call-by-reference formal parameters of type char to record whether it is

A.M. or P.M.(The function will have other parameters as well). Include a loop that lets the user repeat this computation for new input values again and again until

the user says he or she wants to end the program.

MUST BE DONE IN c++

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!