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

Which element is found in all of the following: iron oxide, air, milk, and glass? A) carbon B) hydrogen C) oxygen D) silicon
Which is the most important. characteristics in determining an element chemical properties?
HELP ME!!!!! Read the excerpt below. Which of the following statements best summarizes the main idea of the excerpt? In 1944 Elion joined the Burroughs Wellcome
Which revision most effectively corrects the fused sentence? It began to rain the officials cancelled the game.
Who opposed the Mexican war? And why
What does "The sun so hot I froze to death " mean? from oh, susana
what is the value of the expression below? -3 x (4 - 5) + (9 x 5 + 3) / 3
On a recent survey, 40 percent of those surveyed indicated that they prefer lemonade or sweet tea. If 720 people preferred lemonade, how many people were survey
Which of the following is a remnant of a supernova? A. neutron star B. protostar C. black dwarf D. red giant
Which of the following best describes the expression 6(y + 3)? The product of two constant factors six and three plus a variable The sum of two constant fact