CSC 160 Fall 2013 - Homework 7 (50 points)
Assigned Oct 14 & 16, due MONDAY Oct 21

1) Assignments with time stamps during class time (Mon or Wed 4:15-5:30pm) will be given a grade of ZERO.
2) Start this homework as soon as possible so that you have time to get any help you may need from the instructor or course tutor prior to when the assignment is due.
3) Do not start the exercises until to have fully read and fully understood the corresponding textbook sections. If there is something you do not fully understand, you must contact the instructor or course tutor prior to starting the assigned exercises.
4) In the spirit of the pair programming article that you read and summarized in HW6, this assignment may be done in pairs. If you choose to work in pairs, you must find time outside of class to work together in person at one computer. As per the syllabus, you cannot "pair-off" with the same person more than once during the semester. If you choose to do the assignment in pairs, please submit one copy through Moodle where both last names are used in each file name and both names appear as a comment at the top of each pane (Definitions and Interactions).


Assigned M 10/14:
Textbook Reading (to review today's class):
  • Read the solutions to the bullseye exercise on Moodle.

    Do the following exercise from the textbook in DrRacket and submit all Design Recipe steps:
  • Exercise 5.14.1: diamond

    Textbook Reading (to prepare for next class):
  • Study Chapter 5 for Wednesday's quiz.
  • Read Sections 7.1-7.6 of the textbook.


    Assigned W 10/16:
    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 Sections 7.3-7.6 of the textbook.


    Submitting your Assignment
    You are required to 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 "hw7[LastName]Def.rkt" where:
  • [LastName] is replaced with your last name.
  • For example, if I were submitting this assignment, I would name the file "hw7WittensteinDef.rkt".

    Similarly, the file name for the Interactions Pane needs to be "hw7[LastName]Int.rkt".

    Please let me know if this is not clear or if you are unsure exactly what filename to use. Up to 5 points will be deducted from the assignment grade if incorrect filenames are used.


    GRADING
    Question Point Value
    5.14.1 (contract) 3
    5.14.1 (purpose) 2
    5.14.1 (examples) 3
    5.14.1 (skeleton) 2
    5.14.1 (inventory) 3
    5.14.1 (fill in body) 15
    5.14.1 (testing) 2
    7.2.3 10
    Additional 10
    Total 50




    Last Modified: 10/16/13