CSC 160 Fall 2008 - Homework 7
Assigned Nov 5, due WEDS Nov 12


Reread Chapters 10-11 of the textbook. Omit sections 10.2, 10.6, 10.7, and 11.4.

Do the following exercises from Dr. Bloch's textbook in DrScheme on your own or in pairs (using the ideas in the Pair Programming article):
  • Exercise 10.1.2: show ALL Design Recipe steps including 3 well-chosen examples

  • Exercise 11.1.3: show ALL Design Recipe steps including 3 well-chosen examples

  • Exercise 11.2.4: show ALL Design Recipe steps including 5 well-chosen examples. For full credit, you must "re-use" your function definition from 11.1.3 in the function body to 11.2.4, using the ideas of Chapter 9.



  • Submitting your Assignment
    Please submit this assignment in a single Definitions Pane and a single Interactions Pane through Moodle. Points will be deducted for completing the assignment with multiple Definitions and/or Interactions Panes.

    Be sure to include your first and last name as a comment in the first line of both your Definitions Pane and Interactions Pane.

    The file name for the Definitions Pane needs to be "hw7[LastName]Def.scm" where:
  • [LastName] is replaced with your last name.
  • For example, if I were submitting this assignment, I would name the file "hw7WittensteinDef.scm".

    Similarly, the file name for the Interactions Pane needs to be "hw7[LastName]Int.scm".

    If these filenames are not used, points will be deducted from the assignment grade.


    GRADING
    Question Point Value
    10.1.2 (Contract) 3
    10.1.2 (Purpose) 2
    10.1.2 (Examples) 6
    10.1.2 (Skeleton) 2
    10.1.2 (Inventory) 2
    10.1.2 (Function) 12
    10.1.2 (Testing/Interactions Pane) 3
    11.1.3 (Contract) 3
    11.1.3 (Purpose) 2
    11.1.3 (Examples) 6
    11.1.3 (Skeleton) 2
    11.1.3 (Inventory) 2
    11.1.3 (Function Definition) 12
    11.1.3 (Testing/Interactions Pane) 3
    11.2.4 (Contract) 3
    11.2.4 (Purpose) 2
    11.2.4 (Examples) 10
    11.2.4 (Skeleton) 2
    11.2.4 (Inventory) 2
    11.2.4 (Function Definition) 12
    11.2.4 (Function Re-Use) 6
    11.2.4 (Testing/Interactions Pane) 3
    Total 100




    Last Modified: 11/2/08