CSC 160 Fall 2010 - Homework 4
Assigned Oct 6 to 18, due MON Oct 18 and WED Oct 20


Assigned W 10/6
Review today's class:
  • Read Section 4.1 of the textbook.

    Prepare for next class:
  • Read Sections 4.2-4.10 of the textbook and this article on Pair Programming.
  • Do as many of the required exercises listed below as you can before next class.



  • Assigned W 10/13
    Review today's class:
  • Read Section 4.2 of the textbook.

    Prepare for next class:
  • Finish (1) and (2) in the required exercises listed below (due Monday at 11:55pm).
  • Read Sections 4.3-4.10 of the textbook.


    Assigned M 10/18
    Review today's class:
  • Read Sections 4.3-4.6 of the textbook.

    Prepare for next class:
  • Finish (3) in the required exercises listed below (due Wednesday in class).
  • Read Sections 4.7-4.10 of the textbook.


    Required Exercises
    1) Write a one page (200-300 words) summary of the Pair Programming article.


  • 2) Do the following exercises from the textbook in DrRacket. For each exercise, you need to include three test cases in the Interactions Pane.
  • Exercise 4.2.1 on page 54: vert-mirror-image
  • Exercise 4.2.4 on page 55: surround


  • 3) Do the following exercises from the textbook on paper:
  • Exercise 4.3.2a (relating to 4.2.1 only)

  • Exercise 4.3.2c (relating to 4.2.4 only)

  • Exercise 4.4.1b: Type in the definition for the mystery function given in Exercise 4.3.1. Then, for the function call (mystery ball calendar):
         A) Write down which argument is matched with which parameter.
         B) Write down the first step that the Stepper would do. (Then check with the Stepper that you are correct.)
         C) Write down the second step (and check with the Stepper).
         D) Continuing until the Stepper is finished.
  • Exercise 4.6.3a (drawing a box diagram for your solution to 4.2.1)
  • Exercise 4.6.3c (drawing a box diagram for your solution to 4.2.4)



    Submitting your Assignment
    1) Submit your article summary typed as a .doc (or .docx) file through Moodle, with the filename "hw4[LastName].doc".
    2) Submit your Definitions Pane and Interactions Pane through Moodle. Be sure to include your first and last name as a comment in the first line of your Defintions Pane. The file name for the Definitions Pane needs to be "hw4[LastName]Def.rkt" and the file name for the Interactions Pane needs to be "hw4[LastName]Int.rkt".
    3) Submit the exercises done on paper in class by the due date.


    GRADING
    Question Point Value
    4.2.1-Def 10
    4.2.1-Int 5
    4.2.4-Def 10
    4.2.4-Int 5
    4.3.2a 10
    4.3.2c 10
    4.4.1b 15
    4.6.3a 10
    4.6.3c 10
    Summary 10
    Filenames 5
    Total 100




    Last Modified: 10/18/10