CSC 160 Fall 2010 - Homework 5
Assigned Oct 25, due MONDAY Nov 8


Read Chapter 5 of the textbook.

Do the following exercises from the textbook in DrRacket, to develop a function named pinwheel:
  • Exercise 5.3.3
  • Exercise 5.4.3 (include three test cases)
  • Exercise 5.8.2
  • Exercise 5.9.3
  • Exercise 5.11.2
          Hint: Use the solution to Exercise 1.4.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 develop a function named lollipop:
  • Exercise 5.3.7
  • Exercise 5.4.7 (include three test cases)
  • Exercise 5.8.6
  • Exercise 5.9.7
  • Exercise 5.11.5

  • Exercise 5.12.1 (for lollipop)


  • 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 your Definitions Pane and 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/20/10