Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  • Do the following problems from the book online text (HTDP):
    • 8.3.1 104 (15 pts) 8.3.2 from Intermezzo BSL
    • 105 (15 pts) from Intermezzo BSL
    • 115 9.3.3 (14 pts) from Section 9.5.2 3
    • 116 (14 pts) from Section 9.5.7 3
    • 118 (14 pts) [Note: toy prices are numbers. See 9.5.6.]from Section 10.1
    • 119 .5 (14 pts) from Section 10.1.7
    • 121 (14 pts) from Section 10.1  Note: string-append is defined in Section 1.2.
  • Notes:
    • Be sure to do all the assigned parts of each problem. In the book, each problem ends with a block icon. Online, each problem ends with a hand icon.In problem 9.5.7, the book asks you to write a function that checks for the empty list input as an error and throws an aborting error in the case. (The purpose statement should document this behavior!) In the newest version of DrScheme, the error function take a single argument not two arguments as documented in the book. We recommend using a string (text enclosed in double quotation marks like "This is sample string". You can test the error throwing behavior of a function using check-error which is documented in the DrScheme Help Desk.
    • Read chapter 8 9 very carefully before doing the problems from that chapter. This chapter is not padded with lots of wordy examples. In writing hand evaluations for problems 8.3.1 and 8.3.2104 and 105, follow the same format as the evaluation examples given in the Scheme HW Guide.
    • To follow the design recipe, you must write down the purpose, contract signature, at least 5 well-chosen examples, write the code for the function, and include illustrative test cases for the function (using at least the examples you developed ahead of time). You can bundle  Bundle the examples and test cases together as a block of check-expect invocations. Your chosen examples should illustrate the output you expect, and the test cases should produce the actual output (they should not be commented). If the function processes an inductive type, make sure that your examples include the base case(s) and sample inductive cases.

Submit your homework using the Comp 211 Owlspace pageTBA.