CSC 171
Homework 1

Assigned Jan 27, due Feb 6

Surveys

Fill out the pre-semester background survey on the Web.

Fill out the daily survey on the Web, at least once with your name. (In general, I'd like you to fill it out at least once a week, preferably after every class, name optional.)

Reading and Reactions

Programming

For all the programming assignments, be sure to follow the design recipe. Write your function contract, examples, and function definition in the Definitions Window, save it to a file, and e-mail me this file. Also test your program: since you've already included examples in the Definitions window, you should be able to hit the Execute button and see all the results (along with what you said they "should be"). Save the resulting Interactions window to a text file and e-mail me this file too. Be sure to choose meaningful names for functions and parameters, and watch for opportunities to re-use functions you, I, or the textbook have already written.

Also turn in a log of how many errors of different kinds you encountered in the assignment, with brief comments describing each one ("mismatched parentheses" is self-explanatory, but more complex errors might need more description). You may do this using the PSP forms, or simply by keeping track in a text file or on paper and turning it in.

Grading standards

Pre-term Survey:         /5
(I'm not grading on what you say, only on whether you filled it out.)

"Daily" Survey:         /5
(Ditto.)

Essay:         /30
(Grading primarily on content: convince me that you've read some of the adages and thought about them.)

Error log:       /20
(I'm not grading on how many or how few errors you encountered, only on whether you recorded them adequately.)

Function name Contract Examples Definition Test results
hours->minutes /5 /5 /10 /5
days->hours /5 /5 /10 /5
days->minutes /5 /5 /10 /5
dhm->minutes /5 /5 /10 /5
f->c /5 /5 /10 /5
c->k /5 /5 /10 /5
f->k /5 /5 /10 /5
Modifications   /5 /10 /5
convert-3-digits /5 /5 /10 /5
convert-3-reversed /5 /5 /10 /5
can-vote? /5 /5 /10 /5
can-vote-but-not-drink? /5 /5 /10 /5
salutation /5 /5 /10 /5
reply /5 /5 /10 /5

General skills:

Following directions /10
Writing contracts from word problems /10
Choosing examples /10
Choosing names /10
Coding /10
Code re-use and function composition /10

Total:         /465


Last modified:
Stephen Bloch / sbloch@adelphi.edu