CSC 160 Spring 2015 - Homework 1c (70 points)
Assigned Feb 4, due MON Feb 9
Assignments submitted on Moodle with time stamps during
class time (Mon or Wed 4:15-5:30pm) will be given a grade of ZERO.
[30 pts.] Chapter 1A
Read Sections 1.1-1.4 and 1.6 of the textbook. Update to page 10 of printed edition. Typo on page 14
of printed edition. Typo on
page 16 of printed edition.
Do the following exercises in a single Interactions Pane:
1.2.1: Write an expression to reflect a picture horizontally.
1.2.4: Pick two different images of similar size and
shape, both reasonably small. Use beside
to put one of the
pictures beside the other.
1.2.6a: Pick three different images of similar size
and shape, all reasonably small. Use beside
to put the three
pictures next to each other from left to right.
Save this file to your computer or flash drive with the filename "ch1aLASTNAMEint.rkt".
Upload this file to Moodle, using the link for HW1.
[40 pts.] Chapter 1B
Read Section 1.5 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 "ch1bLASTNAMEint.rkt".
Upload this file to Moodle, using the link for HW1.
GRADING |
Question |
Point Value |
1.2.1 |
10 |
1.2.4 |
10 |
1.2.6a |
10 |
1.5.2 |
20 |
1.5.5 |
20 |
HW1c Total |
70 |
Last Modified: 2/2/15