CSC 160 Fall 2008 - Homework 1
Assigned Aug 27, due MONDAY Sept 8


Read Chapters 1-2 of the textbook.

Do the following exercises from the textbook in the Interactions Pane of DrScheme:
  • 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 image-beside to put one of the pictures beside the other.
  • 1.2.6a: Pick three different images of similar size and shape, both reasonably small. Use image-beside to put the three pictures next to each other from left to right.
  • 1.4.2: Write an expression which displays a picture beside its top-to-bottom reflection.
  • 1.4.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.4.4 done in class as a starting point. 2) Read the hints on the middle of Page 26 of Dr. Bloch's textbook.]

    Do the following Stepper and Box Diagram exercises from the textbook on paper.
  • 1.6.2: Show the sequence of steps the Stepper would take in evaluating the expression (image-beside (rotate-ccw ball) (rotate-cw ball) ) . At each step (but the last), underline the sub-expression that's about to be replaced.
  • 1.7.3: Draw a box diagram to prove that (rotate-cw ball) is a legal expression.
  • 1.7.6: Start drawing a box diagram to try to prove that (rotate-cw ball    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.7.9**: Draw a box diagram around your solution to exercise 1.4.2 to prove that it is a legal expression.

    Submitting your Assignment
    Please submit the Stepper and Box Diagram exercises (1.6.2, 1.7.3, 1.7.6, and 1.7.9) through Moodle or on paper in class.
    Please submit your Interactions Pane (with all other exercises) through Moodle.
    Be sure to include your first and last name at the top of both!

    The file name for the Interactions Pane needs to be "hw1[LastName]Int.scm" where:
  • [LastName] is replaced with your last name.
  • For example, if I were submitting this assignment, I would name the file "hw1WittensteinInt.scm".

    For full credit, you must submit all the exercises (except the Stepper and Box Diagram exercises) in a single Interactions Pane through Moodle.

    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 filename.


    GRADING (out of 100)
    Question Point Value
    1.2.1 10
    1.2.4 10
    1.2.6a 10
    1.4.2 10
    1.4.5 10
    1.6.2 10
    1.7.3 10
    1.7.6 10
    1.7.9 10
    Filename 10
    Total 100




    Last Modified: 9/1/08