CSC 160 Fall 2012 - Homework 2
Assigned Sept 10 & 12 & 17, due WEDNESDAY Sept 19


Assigned M 9/10
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 ball) (rotate-cw ball) ) . 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 ball) is a legal expression.
  • Do 1.8.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.
  • 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):
  • Study Chapter 1 for Wednesday's quiz.
  • Read Chapter 2 of the text.


    Assigned W 9/12
    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.3-2.6 of the textbook.


    Assigned M 9/17
    Textbook Reading (to review today's class):
  • Read Sections 2.3-2.6 of the textbook.

    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 Sections 3.1-3.4 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. Be sure to include your first and last name at the top of your paper!

    Please submit Exercise 2.1.3 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 the Defintions pane and the Interactions 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 15
    2.1.3 20
    2.4.2 10
    2.4.3b 15
    Filename 5
    Total 100




    Last Modified: 9/17/12