CSC 160 Fall 2010 - Homework 2
Assigned Sept 20 to 27, due WEDS Sept 29
Assigned M 9/20
Textbook Reading (to review today's class):
Read Sections 1.7-1.10 of the text.
Required Exercises from the textbook on paper:
Do 1.7.2: Show the sequence of steps the Stepper would take in
evaluating the expression (beside (rotate-ccw
) (rotate-cw
) ) .
At each step (but the last), underline the sub-expression that's about to
be replaced.
Do 1.8.3: Draw a box diagram
to prove that (rotate-cw
) is a legal expression.
Do 1.8.6: Start drawing a box diagram to try to prove
that
(rotate-cw 
is
a legal expression. Stop when you cannot draw any more
boxes, and say in a full sentence why it is not a legal expression.
Do 1.8.9a: Draw a box diagram around your
solution to HW1 exercise
1.5.2 to prove that it is a legal expression.
Textbook Reading (to prepare for next class):
Read Chapter 2 of the text.
Assigned W 9/22
Textbook Reading (to review today's class):
Read Sections 2.1-2.2 of the text.
Required Exercise from the textbook in DrRacket:
Do 2.1.3: Store a picture in a variable. Then define another
variable named two-copies whose value is two copies of that
picture, side by side, by using the previous variable. Then define a third
variable named six-copies whose value is a six-pack of the
picture, 2 wide by 3 high, by using two-copies.
Textbook Reading (to prepare for next class):
Read Sections 2.2-3.4 of the text and this article
on "Joys
and Woes".
Assigned M 9/27
Textbook Reading (to review today's class):
Read Sections 2.2-2.6 of the text.
Required Exercises from the textbook on paper:
Do 2.4.2: Draw a box diagram to prove that
(rotate-cw calendar) is a legal expression. Assume that
calendar is already defined.
Do 2.4.3b: Draw a box diagram for each of the three
expressions in your solution to Exercise 2.1.3 to prove they are all legal
expressions.
Textbook Reading (to prepare for next class):
Read Chapter 3 of the text.
Submitting your Assignment
You are required to submit the Stepper and Box Diagram exercises (1.7.2,
1.8.3, 1.8.6, 1.8.9a, 2.4.2 and 2.4.3b) through Moodle or on paper in
class.
You are required to submit your Interactions and Definitions Panes (with
exercise 2.1.3) through Moodle.
Be sure to include your first and last name at the top of your paper!
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 "hw2[LastName]Def.rkt" where:
[LastName] is replaced with your last name.
For example, if I were submitting this
assignment, I would name the file
"hw2WittensteinDef.rkt".
Similarly, the file name for the Interactions Pane needs to be
"hw2[LastName]Int.rkt".
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 |
| 1.7.2 |
15 |
| 1.8.3 |
10 |
| 1.8.6 |
10 |
| 1.8.9a |
10 |
| 2.1.3 |
20 |
| 2.4.2 |
10 |
| 2.4.3b |
15 |
| Filenames |
10 |
| Total |
100 |
Last Modified: 9/28/10