Update Arrival (2) X75164


Statement
 

pdf   zip

html

Write a function update_arrival(h, m, d) that given integers 0 ≤ h < 24 and 0 ≤ m < 60 representing a flight time arrival and d ≥ 0 representing a delay in minutes returns the updated time arrival.

Sample session
>>> update_arrival(10, 45, 20)
(11, 5)
>>> update_arrival(12, 30, 60)
(13, 30)
>>> update_arrival(22, 0, 120)
(0, 0)
>>> update_arrival(23, 57, 5 + 24*60)
(0, 2)
Information
Author
ProAl
Language
English
Official solutions
Python
User solutions
Python