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

Polonius is viewed as an ambitious fool. a. True b. False
1/4 divide by 5/8 i really need to know for homework
What book analyzed the 1950s as a culture of conformity? 1.The Feminine Mystique 2.On the Road 3.The Lonely Crowd 4.The Catcher in the Rye 5.Howl
Raul has a bottle of salad dressing. Is 700 milliliters or 7000 liters a more reasonable estimate for the capacity of the bottle of salad dressing?
This patient just found out she is pregnant ans would like to know the baby is called a embryo,a zygote,and a fetus?
Why did southeners want to develop industry in the region?
A small group of people who together govern a nation
How do I save a file to a cd?
thirty two decreased by twice a number less than eighteen
What number should both sides of the following equation be divided by to solve for x? (6.4) x = 32 A.4 B.6.4 C.6 D.5