CSC 160 Fall 2013 - Homework 4 (100 points)
Assigned Sept 23 & 25, due MONDAY Sept 30

Assignments submitted on Moodle with time stamps during class time (Mon or Wed 4:15-5:30pm) will be given a grade of ZERO.

Assigned M 9/23
Textbook Reading (to review today's class):
  • Read Sections 3.5-3.10 of the textbook.

    Required Exercises from the textbook in DrRacket:
  • Do 3.5.2 on page 42: (Note: You may use any picture of a person's face for this question. It does not have to be the picture in the textbook.)
  • Do 3.5.4 on page 42: (Hint: A circle's width and height are each twice the radius.)
  • Do 3.5.9 on page 44: (Note: You may use any picture of a person's face for this question. It does not have to be the picture in the textbook.)
  • EXTRA CREDIT: Exercise 3.5.8 on page 44
    **Requirements for submitting the Section 3.5 exercises:
    For full credit, you must submit a single Definitions Pane and a single Interactions Pane through Moodle containing all of the Section 3.5 exercises. 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 "hw4a[LastName]Def.rkt" where:
  • [LastName] is replaced with your last name.
  • For example, if I were submitting this assignment, I would name the file "hw4aWittensteinDef.rkt". Similarly, the file name for the Interactions Pane needs to be "hw4a[LastName]Int.rkt".

    Required exercise from the textbook on paper:
  • Do 3.8.2: Draw a box diagram to prove that (define tri (triangle 15 "solid" "orange")) is a legal expression. Assuming that tri is not already defined.
    **Requirements for submitting 3.8.2:
    You can submit this exercise on paper in class or through Moodle with the filename "hw4Box[LastName]".


    Textbook Reading (to prepare for next class):
  • Read Sections 4.1-4.2 of the textbook.
  • Read this Definition of a Program.


  • Assigned W 9/25
    Textbook Reading (to review today's class):
  • Read Sections 4.1-4.2 and 4.5 of the textbook.
  • View the two Chapter 4 Videos.

    Required Exercises from the textbook in DrRacket (for each exercise, include at least three test cases):
  • Do 4.2.1: vert-mirror-image
  • Do 4.2.4: surround
  • **Requirements for submitting 4.2.1 and 4.2.4:
        1) For full credit, you must submit one Definitions Pane containing the function definitions and test cases for both exercises. Make sure you write your first and last name as a comment at the top of this file. (Do NOT submit two separate Definitions Panes.)
        2) Also, you must submit one Interactions Pane containing the results of the test cases for both exercises. (Do NOT submit two separate Interactions Panes.)
        3) 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 Definitions Pane and the Interactions Pane. The file name for the Definitions Pane needs to be "hw4b[LastName]Def.rkt" and the file name for the Interactions Pane needs to be "hw4b[LastName]Int.rkt".

    Textbook Reading (to prepare for next class):
  • Read Sections 4.3-4.4 and 4.6-4.10 of the textbook.



  • GRADING
    Question Point Value
    3.5.2 10
    3.5.4 15
    3.5.9 15
    3.8.2 10
    X-CR: 3.5.8 +10
    4.2.1-Def 20
    4.2.4-Def 20
    4.2-Int 5
    Filenames 5
    Total 100 + 10




    Last Modified: 9/25/13