Codelab Assignment 3 1. Write a function named average that takes three integer input parameters and computes and returns their average using integer arithmetic. 2. Write a function named maxval that takes two integer input parameters and returns the larger integer value. 3. The first eight values of a recurrence are the following: 2 3 -1 -7 -5 9 19 1 In the terminology of the notes, the recurrence is given by the formula new = old - 2 * older Your mission is to write a function called recur that takes a single integer parameter, n, and returns the n'th value of the recurrence. For example recur(8) should return the value 1, and recur(7) should return the value 19. You may assume that the SMALLEST value that will ever be passed to recur is 2 in which case recur(2) should return 3.