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

the turning effect of force is called​
Find the slope and the​ y-intercept of the line whose equation is 5x+y = −5.
A car dealer wants to draw a Pie Graph representing the different types of cars he sold in a given month. He sold a total of 90 this month with 15 of those cars
If the selling price of a radio is Rs.365 and loss is Rs. 79., find the purchased price​
The specific heat of copper is 385 J/kg·K. If a 2.6 kg block of copper is heated from 340 K to 450 K, how much thermal energy is absorbed?
How is the waxy cuticle of land plants an adaptation for living on land? A. It coats pollen grains and enables them to float on wind currents B. It provides s
Which of the following is the conjugate of the expression below when x> -3? 7- square root of x+3
If f(x)=3x+2and g(x)=x^2-9 find (f-g)(x)
The stage of mitosis in which the nucleolus disappears is a. prophase b. metaphase c. anaphase d. telophase
Gianna is going to throw a ball from the top floor of her middle school. When she throws the ball from 32feet above the ground, the function h(t)=−16t2+48t+32 m