CSC 160 Spring 2015 - Homework 9 (100 points)
Assigned Apr 13, due Mon Apr 20

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 you 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 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 "ch13LASTNAMEdef.rkt". Do not submit this file yet as you will continue working in the same file for the next part of this assignment!


    [40 pts.] Chapter 13B
    Read Sections 13.3-13.5 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 and 3 well-chosen examples
  • Exercise 13.5.1: [Make sure to type (require picturing-programs) at the top of the Definitions Pane.]

  • Save the Definitions Pane again with the same filename, "ch13LASTNAMEdef.rkt". Do not submit this file yet as you will continue working in the same file for the next part of this assignment!


    [24 (+20) pts.] Chapter 13C
    Read Sections 13.7-13.10 of the textbook.

    Do the following textbook exercise in DrRacket. Make sure to show ALL Design Recipe steps:
  • Exercise 13.7.5: MUST include Data Analysis and 5 well-chosen examples. For full credit, your function body must use the may-drive? function we defined in class (see the Chapter 13 PowerPoint slides).
  • EXTRA CREDIT - Exercise 13.7.13 from the textbook (include data analysis and a sufficient number of examples)
    Submit your Definitions Pane with the filename "ch13LASTNAMEdef.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.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
    13.7.5 (Total) 24
    13.7.5 (Contract/Purpose) 3
    13.7.5 (5 Examples) 5
    13.7.5 (Data Analysis) 5
    13.7.5 (Skeleton w/Inventory) 3
    13.7.5 (Fill in function body) 8
    EXTRA CREDIT 13.7.13 +20
    Total 100(+20)




    Last Modified: 4/13/15