CSC 160 Fall 2011 - Homework 5
Assigned Oct 10 & 12, due WEDS Oct 19


Assigned M 10/10:
Textbook Reading (to review today's class):
  • Read Sections 4.7-5.4 of the textbook.

    Do the following exercises from the textbook in DrRacket, to begin developing a function named pinwheel:
  • Exercise 5.3.3
  • Exercise 5.4.3 (include three test cases)


  • Do the following exercises from the textbook in DrRacket, to begin developing a function named lollipop:
  • Exercise 5.3.7
  • Exercise 5.4.7 (include three test cases)


  • Textbook Reading (to prepare for next class):
  • Read Sections 5.5-5.16 of the textbook. Typo on page 82 of printed edition.


    Assigned W 10/12:
    Textbook Reading (to review today's class):
  • Read Sections 5.5-5.11 of the textbook. Typo on page 82 of printed edition.


  • Do the following exercises from the textbook in DrRacket, to finish developing a function named pinwheel:
  • Exercise 5.8.2
  • Exercise 5.9.3
  • Exercise 5.11.2
          Hint: Use the solution to Exercise 1.5.5 from HW1 as a guide to write the expression.
  • Exercise 5.12.1 (for pinwheel)


  • Do the following exercises from the textbook in DrRacket, to finish developing a function named lollipop:
  • Exercise 5.8.6
  • Exercise 5.9.7
  • Exercise 5.11.5

  • Exercise 5.12.1 (for lollipop)


  • Textbook Reading (to prepare for next class):
  • Read Sections 5.12-5.16 of the textbook.
  • Study Chapters 4 & 5 for Monday's quiz.


    Submitting your Assignment
    Please submit this assignment 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 Definitions Pane and the Interactions Pane.

    The file name for the Definitions Pane needs to be "hw5[LastName]Def.rkt" where:
  • [LastName] is replaced with your last name.
  • For example, if I were submitting this assignment, I would name the file "hw5WittensteinDef.rkt".

    Similarly, the file name for the Interactions Pane needs to be "hw5[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
    5.3.3 8
    5.4.3 6
    5.8.2 4
    5.9.3 4
    5.11.2 20
    5.12.1 (pinwheel) 6
    5.3.7 8
    5.4.7 6
    5.8.6 4
    5.9.7 4
    5.11.5 20
    5.12.1 (lollipop) 6
    Filenames 4
    Total 100




    Last Modified: 10/12/11