angel4442 angel4442
  • 23-04-2020
  • Computers and Technology
contestada

Write a program that accepts a time as an hour and minute. Add 15 minutes to the time

Respuesta :

braza909
braza909 braza909
  • 24-04-2020

Answer:

The code is given below

hours = int(input("Enter time in hour: "))

minutes = int(input("Enter time in minute: "))

total time = (hours * 60) + (minutes + 15 )

total hours = int(total minutes  / 60)

minutes  = total hours/ 60

print("Hours: " + str(hours))

print("Minutes: " + str(minutes))

Answer Link

Otras preguntas

A gear in a machine makes 2/3 of a revolution every 1/6 second. What is the speed of the gear in revolutions per minute?
What were 4 of the characterizing changes in retailing and advertising in the second half of the 19th century?
what is the relaishionship betwene genes and cromosomes
What is the best programing language I should learn for 3d gaming?
Robert climbed steps on 12 1/2 minutes
Which trait is not an evaluative tool for a writer to use during the revision process? A. voice B. organization C. conventions D. word choice
A nurse is caring for a patient who has been hospitalized with an acute asthma exacerbation. what drugs should the nurse expect to be ordered for this patient t
Why do we have pairs of chromosomes, not just single copies?
True or false, outcome measures in evaluation research serve as the independent variables in the research question?
Alphabetize these words from your spelling list. yesterday youth yell type sole tough spry symbol through yarn very soul yet