Question: write a program that converts 12 hour notation to 24 hour notation. For example, it should convert 14:25 to 2:25 PM. The input is given

write a program that converts 12 hour notation to 24 hour notation. For example, it should convert 14:25 to 2:25 PM. The input is given as two integers. There should be at least three functions: one for input, one to do the conversion, and one for output. Record the A.M./P.M. information as a value of type char, 'A' for A.M and 'P' for P.M. This, the function for doing the conversion will have a call by reference formal parameter of type char to record whether it is A.M. or P.M. 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.
the function will have other parameters as well.

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!