Question: this is the question i have started the code how my teacher wants us to do it, but not sure what to put under the

this is the question
this is the question i have started the code how my teacher
i have started the code how my teacher wants us to do it, but not sure what to put under the last two function definitions, C++
wants us to do it, but not sure what to put under
C++ Computer Science

1. Write a program that converts from 24-hour notation to 12-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 AM/PM information as a value of type char, 'A' for AM and 'P' for PM. Thus, the function for doing the conver- sions will have a call-by-reference formal parameter of type char to record whether it is AM or PM. (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. C++ 3 // Code to program 24 hour clock to 12 hour 4 5 #include 6 using namespace std; 7 8 // prototypes 9 void getInput () ; 10 void convertTime(); 11 void display12Hour () ; 12 13 // global variables 14 int hours, sinutes ; 15 16 int main() 17{ 18 getInput (); 19 cout > hours; 33 cout > minutes; 35 } 23 : "; 36 37 // function definition 38 void convertTime() 39 40 41 42 } 43 44 // function definition 45 void display12 Hour () 46 47 48 49 )

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