CSC 160 Fall 2011 - Homework 4
Assigned Sept 28 to Oct 5, due MON Oct 10


Assigned W 9/28
Textbook Reading (to review today's class):
  • Read Sections 4.1-4.2 of the textbook.

    Required exercises from the textbook in DrRacket (for each exercise, include at least three test cases):
  • Do 4.2.1: vert-mirror-image
  • Do 4.2.4: surround

  • For full credit, you must submit one Definitions Pane containing the function definitions for both exercises. Make sure you write your first name as a comment at the top of this file. (Do NOT submit two separate Definitions Panes.)
  • Also, you must submit one Interactions Pane containing the results of the test cases for both exercises. (Do NOT submit two separate Interactions Panes.)
  • 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 the Definitions Pane and the Interactions 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".

    Textbook Reading (to prepare for next class):
  • Read this article on Pair Programming.

  • Read Sections 4.3-4.6 of the textbook.


    Assigned M 10/3
    Textbook Reading (to review today's class):
  • View the two chapter 4 videos.
  • Read Sections 4.3-4.4 of the textbook.

    Required Written Exercise:
  • Write a one page (200-300 words) summary of the Pair Programming article.


  • Required Exercises from the textbook on paper:
  • Do 4.3.2a (relating to 4.2.1 only)

  • Do 4.3.2c (relating to 4.2.4 only)

  • Do 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.

    Textbook Reading (to prepare for next class):
  • Read Sections 4.5-4.10 of the textbook.


    Assigned W 10/5:
    Textbook Reading (to review today's class):
  • Read Sections 4.5-4.6 of the textbook.

    Required Exercises from the textbook on paper:
  • Do 4.6.3a (drawing a box diagram for your solution to 4.2.1)
  • Do 4.6.3c (drawing a box diagram for your solution to 4.2.4)

    Textbook Reading (to prepare for next class):
  • Read Sections 4.7-5.4 of the textbook.


    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 Exercises 4.2.1 and 4.2.4 through Moodle following the directions listed above.
    3) Submit the exercises done on paper in class or through Moodle 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 10
    4.6.3a 10
    4.6.3c 10
    Summary 15
    Filenames 5
    Total 100




    Last Modified: 10/3/11