assignments
due Mon Sep 11
one: Preliminaries
- Create a personal page on the course wiki.
- Start reading chapter 1 in the text.
- Start getting your software tools in order
- Install (if need be) python on your computer, if that's where you'll work.
- Install (if need be) a text editor (not a word processor; see the software page).
- If you can, do exercise 1 ('A' through 'L') on page 22 of the text.
- On the course page where you submit this week's work, tell me
- what you computer background is, and
- how all the work described above is going.
due Mon Sep 18
two: Computers and Simple Programs
- Finish reading chapter 1. Read chapter 2.
- Do exercises 3 and 5 from chapter 1, on page 23.
- Do exercises 1, 7, and 10 from chapter 2.
due Mon Sep 25
three: Numbers and Strings
- Read chapters 3 and 4
- Do exercises 11 and 15 in chapter 3
- Do exercises 5, 8, and 14 in chapter 4
due Mon Oct 2
four: Objects and graphics.py
- Read chapter 5
- Describe in your own words what the following are in programming, and given an example of each from the graphics.py package.
- object
- instance
- class
- accessor
- clone
- Do exercises 2 and 12 from chapter 5
- Write graphics program that does something with user mouse clicks - your choice as to what it does.
due Mon Oct 9
five: Functions
- read chapter 6
- What is the difference between "pass by reference" and "pass by value"?
- What is a "return value"?
- Do excercises 2, 7, 15 from chap 6 on pgs 194 and following.
due Mon Oct 16
six: Decisions and booleans
- read chapters 7 and 8. (I'll be skipping around a bit here; in particular, the part on boolean values on pgs 250 and following I think is worth doing earlier rather than later.)
- Do exercises 9 and 10 from chapter 7, on page 229.
- Do exercises 6 and 7 from chapter 8, on page 263.
- Write a program that translates english sentences to pig latin. See http://en.wikipedia.org/wiki/Pig_Latin for a definition.
due Wed Oct 25
seven: Simulation and your mid-term project
- Read chapter 9, on simulation and design
- Do exercise 7 on pg 292, the "Craps" simulation.
- Propose a programming project to do for your mid-term project, due Nov 13
- (Note that because of Hendrick's Days vacation, this assigment is due on a Wednesday.)
due Mon Oct 30
eight: Defining Classes
- Read chapter 10, on classes
- Do exercise 11 on pg 333
- Pick any program you've written earlier this term. Re-write it using the object-oriented approach described in this chapter.
due Mon Nov 6
nine: Data Collections
- Do exercises 13 and 14 from chapter 11, page 380. This extends the PlayingCard exercise from last week.
- Hint: uses lists and dictionaries to organize the information ...
due Mon Nov 13
ten: mid-term project
- mid-term project due
- nothing else; use this week to review and catch up
due Mon Nov 20
eleven: Recursion
- start reading chapter 13, Algorithm Design
- do exercises 3 and 4 on page 463
- propose a final project
due Mon Dec 4
twelve: CGI
- read about CGI - running programs over the web
- Create a .cgi script that (1) shows a random picture, (2) displays a random quote, and (3) counts how many times its been displayed.
due Mon Dec 11
thirteen: more CGI
- Create a cgi form along the lines of what I showed in class. It should have some text, menu, buttons - whatever - and at least show what was input.
- Short'n'sweet; this is just a 'try this out' assignment.
due Fri Dec 15
final project:
- (due Fri after last day of classes)
- final project due
term grade