CS1321 Fall AY2002 Homework 6 Due via Webwork before 6 a.m. Tuesday, Sept. 11, 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!!! Store your answers in a text file. Name your file hw6.txt (all lowercase, and yes, exactly that name.) At the top of your file, include the student info portion of the HW Skeleton (Name, GT Number, HW, Course, Instructor, Lecture Time). 1. (define-struct book (title author ISBN)) 2. (define-struct dog (name breed rabies-tag-number gender)) 3. (define-struct hairdye (color permanence)) 4. (define-struct birthdate (month day year)) 5. (define-struct student (lastName firstName gtnum birthdate)) For each of the structs defined above, develop templates for functions that consume the given structure. Important Note: here function template means something extremely specific. See the book "6.5 Designing Functions for Compound Data" for details. The term 'template' refers only to the template portion of the new and improved Design Recipe shown on page 67, Figure 11: The design recipe for compound data: A complete example. Also found at http://www.htdp.org/2001-01-18/Book/node31.htm in the online version. To make it clear what's expected from this assignment, here's the first one for free: ------------------ cut here -------------------- ;; Name : Monica Sweat ;; GT Number : gt911 ;; HW : HW6 ;; Course : cs1321 ;; Instructor : sweat {pick yours from smith, dagon, sweat, or lerner} ;; Lecture Time : 1:30 pm ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; <1> ;; Template: ;; (define (process-book a-book) ;; ... (book-title a-book) ... ;; ... (book-author a-book) ... ;; ... (book-ISBN a-book) ...) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; <2> and so on...