211 F '06
The Hand In
The Recipes
The World
Set 1
Set 2
Set 3
Set 4
Set 5
Set 6
Set 7
Set 8
Set 9
Set 10
Set 11
Set 12
Set 13
Set 14

Problem Set 2

Due date: 9/18 @ 6pm

Problem 0 [5%]:

Find one interesting article from the weeks news on the use of software/computers in society. Summarize the article in your own words with a single 200-word paragraph, as a pair, one playing writer, the other playing editor. Add both the article and the summary in with the rest of your problem set.

The goal of this problem set is to practice the design recipe for simple functions. The functions consume atomic forms of data (numbers, symbols, images). Some use conditionals to distinguish among different situations.

HtDP Problems
4.2.1, 4.4.1, 5.1.2
Problem A1
Formulate the formulas from Problems 2, 3, and 4 on Set 1 as Scheme programs. Then apply the strategy of HtDP problem 4.2.4 to formulate automatic tests for these three programs. Make sure to turn at least two examples from your table into tests.
Problem A2
Find an image of a car on the web. Then develop a program that "drives" the car on a 500 x 200 canvas from left to right. When the car's right end reaches the right margin, make the car re-appear on the left.

Your program should clearly identify at what speed the car moves and a single change to your program should change the speed of the car.

last updated on Thu Nov 30 11:55:15 EST 2006generated with PLT Scheme