Computers and Technology

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 16:30, rileysndr1782
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
image
Computers and Technology, 24.06.2019 00:00, BluedragonKBT44
The gene form of a trait is called a(n) 
Answers: 2
image
Computers and Technology, 24.06.2019 03:30, ava1018
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
image
Computers and Technology, 24.06.2019 06:30, titalili0204
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
Do you know the correct answer?
Write a program that accepts a time as an hour and minute. add 15 minutes to the time, and output th...

Questions in other subjects:

Konu
Mathematics, 30.06.2019 10:30
Konu
Mathematics, 30.06.2019 10:30