CSC 160 Fall 2011 - Homework 6
Assigned Oct 31 to Nov 9, due MON Nov 14


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

    Do the following exercises in DrRacket:
  • Exercise 7.2.3 from the textbook.
  • Additional Exercise: Write a Racket expression to represent the standard arithmetic expression (3 + 4) * (7 - 2). (Do not work out the math, just translate it into the Racket language.)

    Textbook Reading (to prepare for next class):
  • Read Section 7.3-7.7 of the textbook.


    Assigned W 11/2 & M 11/7
    Textbook Reading (to review today's class):
  • Read Sections 7.3-7.7 of the textbook.

    Do the following exercises from the textbook in DrRacket and submit all Design Recipe steps:
  • Exercise 7.7.3 from the textbook: circle-perimeter
  • Exercise 7.7.7 from the textbook: hours->minutes


  • Textbook Reading (to prepare for next class):
  • Read Chapter 9 of the textbook.


    Assigned W 11/9
    Textbook Reading:
  • Read Chapter 9 of the textbook.

    Do the following exercises from the textbook in DrRacket and submit all Design Recipe steps:
  • Exercise 9.2.2 from the textbook: repeat
  • EXTRA CREDIT: Exercise 9.2.6: first-half [Note: For odd-length strings, the result should not include the middle-character. For instance, if the argument is "March", the result should be "Ma", not "Mar".]
    *Note: The points from this extra credit will be added to one or more homework grades that are under 100, so that no homework grade exceeds 100.*



  • 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 "hw6[LastName]Def.rkt" where:
  • [LastName] is replaced with your last name.
  • For example, if I were submitting this assignment, I would name the file "hw6WittensteinDef.rkt".

    Similarly, the file name for the Interactions Pane needs to be "hw6[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
    7.2.3 10
    Additional 10
    7.7.3 (Contract) 2
    7.7.3 (Purpose) 2
    7.7.3 (3 Examples) 4
    7.7.3 (Skeleton) 2
    7.7.3 (Inventory) 2
    7.7.3 (Function Definition) 10
    7.7.3 (Testing/Interactions Pane) 3
    7.7.7 (Contract) 2
    7.7.7 (Purpose) 2
    7.7.7 (3 Examples) 4
    7.7.7 (Skeleton) 2
    7.7.7 (Inventory) 2
    7.7.7 (Function Definition) 10
    7.7.7 (Testing/Interactions Pane) 3
    9.2.2 (Contract) 2
    9.2.2 (Purpose) 2
    9.2.2 (3 Examples) 4
    9.2.2 (Skeleton) 2
    9.2.2 (Inventory) 2
    9.2.2 (Function Definition) 10
    9.2.2 (Testing/Interactions Pane) 3
    9.2.6 +20
    Filenames 5
    Total 100 + 20




    Last Modified: 11/7/11