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

Anyone know this geometry question?
Given that (-6,-5) is on the graph of f(x), find the corresponding point for the function f(3/4x)
how does capitalism differ from socialism when it comes to the ownership of property?
The cell cycle consists of an alternation between _______9___________, which appears as a period of dramatic activity under the microscope, and a preparative pe
[tex]y {?}^{2} - 18y + 81[/tex]
Why do you think the governments of the United States and other countries encouraged people on the home front to organize programs for such activities as scrap
During which period did energy use increase exponentially
Identify four reasons that nations trade with one another
Which of the following sentences has both a compound subject and a compound object? A. Jane and Liza love books and music. B. Amy and Paul watched t
Sheena's therapist tells her to relax, close her eyes, and state aloud whatever comes to mid no matter how trivial or absurd it seems. the therapist is using a