- 2

C++ project

Write a program that converts from 24-hours notation to 12-hours notation. For example, it should convert 14:25 to 2:25 PM. The input is given as tow integers. There should be at least three functions, one for input, one to do the conversion, and one for output. Record the AM/PM information as a value of type char, ‘A’ for AM and ‘P’ for PM.

12th Oct 2022, 11:24 PM
Marwa Alsalameh
2 odpowiedzi
+ 1
What are you asking? Do you want others to write this for you? Naw. Break it down into steps and implement one step at a time. If you get stuck on a step then show what you tried, explain how it is failing, and ask for specific help.
13th Oct 2022, 5:37 AM
Brian
Brian - avatar
+ 1
Write down what you have. Essentially, how do we go from (14) to (2).? And the (25) requires no manipulation.
13th Oct 2022, 6:10 AM
Giovanni