CSC 160 Fall 2012 - Homework 4
Assigned Oct 1 & 3, due MON Oct 8
Assignments with time stamps during
class time
(Mon or Wed 4:15-5:30pm) will be given a grade of
ZERO.
Assigned M 10/1
Textbook Reading (to review today's class):
Read Pages 1-11 of the PSP handout (if not previously
read).
Read Chapter 3 of the PSP handout.
Start the Time Recording Log. For the next week, fill it out
anytime you do an activity related to this course.
Read this Definition
of a Program.
Read Sections 4.1-4.2 of the textbook.
View the two
chapter 4 videos.
Required exercises from the textbook in DrRacket (for each exercise,
include at least three test cases):
Do 4.2.1: vert-mirror-image
Do 4.2.4: surround
**Requirements for submitting 4.2.1 and 4.2.4:
1) For full credit, you
must submit one Definitions Pane containing the
function definitions and test cases for both exercises. Make sure you
write your first and last name as a comment at the top of this file. (Do NOT submit two separate
Definitions Panes.)
2) Also, you must submit one Interactions Pane
containing the results of the test cases for both exercises. (Do NOT
submit two separate Interactions Panes.)
3) 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 "hw4[LastName]Def.rkt" and the file name for the
Interactions Pane needs to be
"hw4[LastName]Int.rkt".
Textbook Reading (to prepare for next class):
Read Sections 4.3-4.10 of the textbook.
Assigned W 10/3
Textbook Reading (to review today's class):
Read Sections 4.3-4.5.2 of the textbook.
Required Exercises from the textbook on paper:
Do 4.3.2a (relating to 4.2.1 only)
Do 4.3.2c (relating to 4.2.4 only)
Do 4.4.1b: Type in the definition for the
mystery
function given in Exercise 4.3.1. Then, for the
function call (mystery ball calendar)
:
A) Write down which argument is matched with
which parameter.
B) Write down the first step that the Stepper
would do. (Then check with the Stepper that you are correct.)
C) Write down the second step (and check with the
Stepper).
D) Continuing until the Stepper is
finished.
Do 4.6.3a (drawing a box diagram for your solution to
4.2.1)
Do 4.6.3c (drawing a box diagram for your solution to
4.2.4)
Textbook Reading (to prepare for next class):
Read Sections 4.6-5.4 of the textbook.
Required Exercises from the textbook on paper:
Do 4.6.3a (drawing a box diagram for your solution to
4.2.1)
Do 4.6.3c (drawing a box diagram for your solution to
4.2.4)
Submitting your Assignment
1) Submit Exercises 4.2.1 and 4.2.4 through Moodle following the requirements
listed above.
2) Submit the Time Recording Log and the exercises done on paper in class
or through Moodle by the due date.
GRADING |
Question |
Point Value |
4.2.1-Def |
15 |
4.2.4-Def |
15 |
Interactions |
5 |
4.3.2a |
10 |
4.3.2c |
10 |
4.4.1b |
10 |
4.6.3a |
10 |
4.6.3c |
10 |
Time Log |
10 |
Filenames |
5 |
Total |
100 |
Last Modified: 10/3/12