| 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))))
|