subject

Write a program that converts from 12-hour notation to 24-hour notation. For example, it should convert 2:25 P to 14:25. The input is given as two integers (one for the hour and one for the minutes) and a letter (A for A. M. and P for P. M). The input should be saved in a structure type of variable. There should be at least three functions: one for input, one to do the conversion, and one for output. Thus, the function for doing the conversions will have a call-by- reference formal parameter of type char to record (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. 2. Before the program is terminated, display a message indicating if the user converted more A. M time or P. M time. (you will need an array of the structure type created in part 1).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 12:30
How is the brightness of oled of the diaplay is controled
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
You know the right answer?
Write a program that converts from 12-hour notation to 24-hour notation. For example, it should conv...
Questions
question
Arts, 20.11.2020 07:30
question
English, 20.11.2020 07:30
question
Mathematics, 20.11.2020 07:30