CS1321 Fall AY2002 Homework 7 Due via Webwork before 6 a.m. Tuesday, Sept. 18, 2001 Note: Webwork will stop accepting this homework at that time - Turn it in well BEFORE then. No late homework is accepted. ___________________________________________________________________________ =x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x%=x% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Instructions: TURN IN THIS ASSIGNMENT USING WEBWORK!!! CLARIFICATION: Do this homework using DrScheme. At the top of your file, include the student info portion of the HW Skeleton (Name, GT Number, HW, Course, Instructor, Lecture Time). 1. Problem 9.1.4 from the text. 2. Write a function that consumes a number and returns either true or false. The function is to check if the number is a multiple of 5. Assume the number is a non-negative integer and that 0 is a multiple of 5. Name your function multi5? (include the "?" indicating that the function is a predicate.) You are to write this function so that it uses subtraction and recursion to determine whether the number is a multiple of 5. You are required to make your function recursive. DO NOT USE the remainder function; DO NOT USE division. Use subtraction. For each of the problems above, follow the HW skeleton and proper Design Recipe. Part of the assignment is to determine whether the template portion of the recipe is required. Be sure to use an adequate number of test cases and examples.