subject

Write a program that accepts a time as an hour and minute. add 15 minutes to the time, and output the result.
example 1:
enter the hour: 8
enter the minute: 15
it displays:
hours: 8
minutes: 30
example 2:
enter the hour: 9
enter the minute: 46
it displays:
hours: 10
minutes: 1
hint: first, try to solve the problem where hours go from {0,1,,9,10,11} instead of {1,2,,10,11,12}. this should be similar to your answer for q2. then, find a way to convert your final answer for hours from a {0,1,,9,10,11} time system to a {1,2,,10,11,12} time system.
the following content is partner provided

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
If you add the following to the query grid in an access query, what is it called? salestaxamt: [salestaxrate]*[totalsale] formula calculated field total calculation
Answers: 2
You know the right answer?
Write a program that accepts a time as an hour and minute. add 15 minutes to the time, and output th...
Questions
question
Mathematics, 05.06.2021 05:10
question
Mathematics, 05.06.2021 05:10
question
Mathematics, 05.06.2021 05:10
question
History, 05.06.2021 05:10
question
Mathematics, 05.06.2021 05:10
Questions on the website: 13722359