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 02:30
Your boss wants you to configure his laptop so that he can access the company network when he is on the road. you suggest a vpn connection to him. he is very concerned about security and asks you how secure vpn is. what do you tell him?
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
The most common battery cable terminal is a that provides a large surface contact area with the ability to tighten the terminal onto the battery post using a nut and bolt.
Answers: 2
question
Computers and Technology, 23.06.2019 10:20
Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?
Answers: 1
question
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
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
Mathematics, 25.06.2019 22:30
Questions on the website: 13722361