Teaching
2500 F '11
 
Assignments
The Hand In
Set 1
Set 2
Set 3
Set 3h
Set 4
Set 4h
Set 5
Set 5h
Set 6
Set 7
Set 6h
Set 8
Set 7h
Set 9
Set 8h
Set 10
Set 9h
Set 11
Set 10h
Set 12

Problem Set 11

Due date: 11/22 @ 11:59pm

Programming Language: Intermediate Student Language with lambda


The goal of this problem set is to understand the representation and evaluation of simple programs.


HtDP Problems - 1:

Review section 14.4 in the book.

Solve problems 14.4.1, 14.4.2, 14.4.3, and 14.4.4

A good, clear data definition is key... and a template certainly wouldn't hurt.

HtDP Problems - 2:

With your evaluate-expression function in hand (or mind) review section 17.7 in the book.

Solve problems 17.7.1, 17.7.2, 17.7.3, and 17.7.4

Be sure that all your recursive calls are correct (no copy-paste-modify errors) and that you test your functions with a few interesting examples... including a representation of the following program:

      ;; square : Number -> Number
      ;; Compute the square of the given number
      (define (square n)
        (* n n))
      (square (square (square (+ 1 1))))

  

last updated on Tue Nov 29 19:02:43 EST 2011generated with Racket