CISC108 Midterm: cisc108-f13-exam1

27 views12 pages

Document Summary

You have 120 minutes to complete the exam. You may have with you a single piece of paper with notes on both sides. You may have only your sheet of notes, a single writing implement, and the exam on your desk (e. g. , no cell phones, laptops, water bottles, etc. You do not need to show contracts, signatures, purposes, templates, or test cases unless speci cally asked. However, they may help you earn partial credit if you can not provide a complete solution. You may also use any constants you need. ;; a apple-color is "red", "green , or "yellow" ;; crisp-number is a number between [1, 10] (define-struct apple (weight color crunchiness)) ;; -- crunchiness is how crisp the apple is. K (define apple1 (make-apple 8 "red" 9)) (define (apple-fun anapple) ;; -- ripe? is true if the banana is ripe, false otherwise (define banana1 (make-banana 4 true))

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents