CSC 160 Spring 2014 - Homework 1 (100 points)
Assigned Feb 10, due MON Feb 17
Assignments submitted on Moodle with time stamps during
class time (Mon or Wed 4:15-5:30pm) will be given a grade of ZERO.
[40 pts.] Chapter 1B
Read Sections 1.5-1.6 of the textbook.
Do the following exercises in a single Interactions Pane:
1.5.2: Write an expression which displays a picture beside its top-to-bottom reflection.
1.5.5: Write an expression which displays four copies
of a picture in a two-by-two square, each rotated differently: the top-left one should be the original picture, the top-right
one should be the original picture rotated 90 degrees clockwise, the
bottom-left one should be the original picture rotated 90
degrees counterclockwise, and the bottom-right one should be the original
picture rotated 180 degrees. [Hints: 1) Use exercise 1.5.4, whose
solution is in Section 1.5 of the Chapter 1 Powerpoint slides on Moodle,
as a starting point.
2) Read the hints on the bottom of Page 17 in the textbook.]
Save this file to your computer or flash drive with the filename "hw1[LastName]Int.rkt".
Upload this file to Moodle, using the link for HW1.
[50 pts.] Chapter 1C
Read Sections 1.7-1.10 of the textbook.
Do the following exercises on paper:
1.7.2: Show the sequence of steps the Stepper would take in
evaluating the expression (beside (rotate-ccw
) (rotate-cw
) )
.
[Reminder: At each step (but the last), you need to underline the sub-expression that's about to
be replaced (i.e., the way Exercise 1.7.1 is done in the textbook).]
1.8.3: Draw a box diagram
to prove that (rotate-cw
)
is a legal expression.
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.
1.8.9a: Draw a box diagram around your
solution to exercise 1.5.2 to prove that it is a legal expression.
Submit on paper in class by the due date OR on Moodle with the filename "hw1[LastName]Box".
[10 pts.] PSP Handout
Read pages 1-11 of the handout. (Handout will be given out in class on Wed 2/12.)
Do the Assignment on page 7.
Submit on paper in class by the due date OR Moodle with the filename "hw1[LastName]PSP".
GRADING |
Question |
Point Value |
1.5.2 |
20 |
1.5.5 |
20 |
1.7.2 |
15 |
1.8.3 |
10 |
1.8.6 |
10 |
1.8.9a |
15 |
PSP pg.7 |
10 |
Total |
100 |
Last Modified: 2/10/14