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

Both X-rays and gamma rays have higher frequencies than ultraviolet rays True or False
The maximum range of projectle is R° if projected at angle of 45°. It'll be 300% of Range of projectile if projected at angle? a) 30° b) 45° c) 60° d) 76° Corre
If you could travel back in time and change any one thing about your past, would you? If so, what would you change and why? If not, why wouldn't you? - Respond
Someone help please !!
Which would be used to solve this equation? Check all that apply. p Over 3=12 subtracting 3 from both sides of the equation multiplying both sides of the equati
How do you think U.S. education will change after this pandemic is finally over? Or will it just go back to how it was? Explain
Which of the following are not examples of circular motion? Check all that Apply
1.4(3x+0.5)= 1 3 (6x+2.7)
The Magic Carpet charges $90 for installation and $9 per square yard of carpeting. The Carpeteria's installation price is $50 but the store charges $13 for each
What is the term for a trait that is on an x or Y chromosome