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, 22.06.2019 04:00
Which spereadsheet type will determine how well a bussiness has done over the past year
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
How can you make your column headings stand out?
Answers: 1
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
Health, 20.10.2020 03:01
question
Mathematics, 20.10.2020 03:01
question
Mathematics, 20.10.2020 03:01
question
Mathematics, 20.10.2020 03:01
question
Mathematics, 20.10.2020 03:01
Questions on the website: 13722360