CSC 160 Fall 2008 - Homework 4
Assigned Sept 29, due MONDAY Oct 13, extended to WEDS Oct
15
Read Chapter 5 of Dr. Bloch's textbook.
Read Sections 7.1-7.7 of Dr. Bloch's textbook.
Do the following exercises from Dr. Bloch's textbook in DrScheme,
to develop a function named pinwheel:
Exercise 5.3.3
Exercise 5.4.3 (include three test cases)
Exercise 5.5.3
Exercise 5.6.3
Exercise 5.7.2
Hint: Use the solution to Exercise
1.4.5 from HW1 as a guide to write the expression.
Exercise 5.8.1 (for pinwheel)
Do the following exercises from Dr. Bloch's textbook in DrScheme,
to develop a function named lollipop:
Exercise 5.3.7
Exercise 5.4.7 (include three test cases)
Exercise 5.5.7
Exercise 5.6.7
Exercise 5.7.5
Exercise 5.8.1 (for lollipop)
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 "hw4[LastName]Def.scm" where:
[LastName] is replaced with your last name.
For example, if I were submitting this
assignment, I would name the file "hw4WittensteinDef.scm".
Similarly, the file name for the Interactions Pane needs to be
"hw4[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 |
| 5.3.3 |
8 |
| 5.4.3 |
6 |
| 5.5.3 |
4 |
| 5.6.3 |
4 |
| 5.7.2 |
20 |
5.8.1 (pinwheel) |
6 |
| 5.3.7 |
8 |
| 5.4.7 |
6 |
| 5.5.7 |
4 |
| 5.6.7 |
4 |
| 5.7.5 |
20 |
5.8.1 (lollipop) |
6 |
| Filenames |
4 |
| Total |
100 |
Last Modified: 10/13/08