You have to program several functions. In each case, few lines of code are enough.
Write a function @welcome(name)@ that prints a personalized greeting message. Follow the pattern of the example below.
Write a function @max_min(x, y)@ that returns the maximum and the minimum of two integer numbers and .
Write a function @integer_division(a, b)@ that returns the quotient and remainder of the integer division of by . Numbers and are non negative integers and
Write a function @digit_count(n)@ that given a natural number returns its number of digits.
Write a function @leading_hand(h, m)@ that given integers and representing a digital hour prints the leading hand of an analogical watch pointing out that hour. Depending on value parameters the function prints either "hour hand", "minute hand" or "draw". Leading hand is the one closest to following the clockwise rotation. We assume hour hand has only possible configurations and minute hand has .
Write a function @update_arrival(h, m, d)@ that given integers and representing a flight time arrival and representing a delay in minutes returns the updated time arrival.
Last two functions counts 20 points each one. Previous ones counts 15 points.
>>> welcome("King Kong") Hello King Kong, you are welcome! >>> max_min(-3,5) (5, -3) >>> integer_division(14,3) (4, 2) >>> digit_count(6543) 4 >>> leading_hand(22,51) minute hand >>> update_arrival(23, 57, 5 + 24*60) (0, 2)