A Modular Approach to Program Organization

1.

   a. math.floor(-2.8)
   a. abs(round(-4.3))
   a. math.ceil(math.sin(34.5))

2.

   b. import calendar
   c. help(calendar.isleap)
   d. calendar.isleap(2016)
   e. dir(calendar)
   f. calendar.leapdays(2000, 2050)
   g. calendar.weekday(2016, 7, 29)

3.
def average(num1, num2):
    """ (number, number) -> number

    Return the average of num1 and num2.

    >>> average(10,20)
    15.0
    >>> average(2.5, 3.0)
    2.75
    """ 
    return (num1 + num2) / 2