Assignment 1

Due date: 1/19 @ 9:50 am

Bring to the lab a paper copy to hand in (by 9:50 - no later). Save your work in your MyNeu myFiles. During the lab you will use this file to learn how to use the electronic submissions server.

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.


Purpose:

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.2, 4.4.2, 5.1.1


Problem A1:

Formulate the formulas from Problems 1 and 2 on the Warmup Assignment 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.

Guess a formula for calculating what the population will be after n years.


Problem A2:

Find an image of an airplane on the web. Then develop a program that "flies" the airplane across a 500 x 200 canvas from left to right. When the airplane's right end reaches the right margin, make the airplane re-appear on the left.

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



Last modified: Wed Jan 17 16:36:23 EST 2007