CSC 160 Fall 2008 - Homework 3
Assigned Sept 17, due MONDAY Sept 29
Read Chapter 5 of Dr. Bloch's textbook.
Do the following exercises from the textbook in the Definitions
Pane of DrScheme. For
exercises 4.2.1 and 4.2.4, you need to include three test
cases in the
Interactions Pane. For exercises 4.3.2a and 4.3.2c, please
comment out those answers, as they are not Scheme code.
Exercise 4.2.1 on page 56-57: vert-mirror-image
Exercise 4.2.4 on page 58: surround
Exercise 4.3.2a (relating to 4.2.1 only)
Exercise 4.3.2c (relating to 4.2.4 only)
Do the following exercises from the textbook on
paper:
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
Please 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 both your Defintions Pane and
Interactions Pane.
Please submit the exercises done on paper in class by the due date.
The file name for the Definitions Pane needs to
be "hw3[LastName]Def.scm" where:
[LastName] is replaced with your last name.
For example, if I were submitting this
assignment, I would name the file
"hw3WittensteinDef.scm".
Similarly, the file name for the Interactions Pane needs to be
"hw3[LastName]Int.scm".
Please let me know if this is not clear or if you are unsure exactly
what filename to use. Part of your grade is using the correct filenames.
| GRADING |
| Question |
Point Value |
| 4.2.1-Def |
14 |
| 4.2.1-Int |
6 |
| 4.2.4-Def |
14 |
| 4.2.4-Int |
6 |
| 4.3.2a |
10 |
| 4.3.2c |
10 |
| 4.4.1b |
15 |
| 4.6.3a |
10 |
| 4.6.3c |
10 |
| Filenames |
5 |
| Total |
100 |
Last Modified: 9/15/08