CSC 160 Spring 2014 - Homework 9 (100 points)
Assigned Apr 11, due Mon Apr 21

1) Assignments with time stamps during class time (Mon or Wed 4:15-5:30pm) will be given a grade of ZERO.
2) In the spirit of the pair programming article that you read and summarized in HW5, this week's homework 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 the Definitions Pane.
3) 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.
4) 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.


[36 pts.] Chapter 13A
Read Chapter 12 and Sections 13.1-13.2 of the textbook.

Do the following textbook exercises in DrRacket. Make sure to show ALL Design Recipe steps:
  • Exercise 13.2.3 - Write a function that is case-independent, so arguments of "nintendo", "Nintendo", and "NINTENDO" all return true.
  • Exercise 13.2.5

  • Save the Definitions Pane to your computer or flash drive with the filename "hw9[LastName]Def.rkt". Do not submit this file yet as you will continue working in the same file for the next part of this assignment!


    [64 pts.] Chapter 13B
    Read Sections 13.3-13.6 of the textbook.

    Do the following textbook exercises in DrRacket. Make sure to show ALL Design Recipe steps:
  • Exercise 13.3.4: MUST include Data Analysis
  • Exercise 13.4.1: MUST include Data Analysis
  • Exercise 13.5.1: [Make sure to type (require picturing-programs) at the top of the Definitions Pane.]

  • Submit your Definitions Pane with the filename "hw9[LastName]Def.rkt".


    [+30 pts.] Extra Credit (assigned T 4/15)
    Do Exercise 11.6.1 from the textbook using at least two auxiliary functions and a main function, as diagramed in class on April 14th. To receive credit, your main function must call your auxiliary functions. [Click here for my April 17th Moodle posting about this exercise.]

    Submit your Definitions Pane with the filename "hw9xcr[LastName]Def.rkt".


    GRADING
    Question Point Value
    13.2.3 (Total) 18
    13.2.3 (Contract/Purpose) 3
    13.2.3 (3 Examples) 3
    13.2.3 (Skeleton w/Inventory) 4
    13.2.3 (Fill in function body) 8
    13.2.5 (Total) 18
    13.2.5 (Contract/Purpose) 3
    13.2.5 (3 Examples) 3
    13.2.5 (Skeleton w/Inventory) 4
    13.2.5 (Fill in function body) 8
    13.3.4 (Total) 22
    13.3.4 (Contract/Purpose) 3
    13.3.4 (Data Analysis) 4
    13.3.4 (3 Examples) 3
    13.3.4 (Skeleton w/Inventory) 4
    13.3.4 (Fill in function body) 8
    13.4.1 (Total) 24
    13.4.1 (Contract/Purpose) 3
    13.4.1 (Data Analysis) 4
    13.4.1 (3 Examples) 3
    13.4.1 (Skeleton w/Inventory) 4
    13.4.1 (Fill in function body) 10
    13.5.1 (Total) 18
    13.5.1 (Contract/Purpose) 3
    13.5.1 (3 Examples) 3
    13.5.1 (Skeleton w/Inventory) 4
    13.5.1 (Fill in function body) 8
    Extra Credit: 11.6.1 +30
    TOTAL 100 + 30




    Last Modified: 4/17/14