1 12687dd9 2023-08-04 jrmu ;; The first three lines of this file were inserted by DrScheme. They record metadata
2 12687dd9 2023-08-04 jrmu ;; about the language level of this file in a form that our tools can easily process.
3 12687dd9 2023-08-04 jrmu #reader(lib "htdp-advanced-reader.ss" "lang")((modname |40.1|) (read-case-sensitive #t) (teachpacks ((lib "guess-gui.ss" "teachpack" "htdp") (lib "guess.ss" "teachpack" "htdp") (lib "gui.ss" "teachpack" "htdp") (lib "draw.ss" "teachpack" "htdp"))) (htdp-settings #(#t constructor repeating-decimal #t #t none #f ((lib "guess-gui.ss" "teachpack" "htdp") (lib "guess.ss" "teachpack" "htdp") (lib "gui.ss" "teachpack" "htdp") (lib "draw.ss" "teachpack" "htdp")))))
4 12687dd9 2023-08-04 jrmu Exercise 40.1.3. Show how to implement the following structure definitions as functions:
8 12687dd9 2023-08-04 jrmu (define-struct movie (title producer))
11 12687dd9 2023-08-04 jrmu (define-struct boyfriend (name hair eyes phone))
14 12687dd9 2023-08-04 jrmu (define-struct cheerleader (name number))
17 12687dd9 2023-08-04 jrmu (define-struct CD (artist title price))
20 12687dd9 2023-08-04 jrmu (define-struct sweater (material size producer))
22 12687dd9 2023-08-04 jrmu Pick one and demonstrate that the expected laws hold. Solution