Do all of the data definitions from HW 3 in Java: Lion, Tiger, Bear, OzAnimal, and OzScene.
If there's still time, try NumList. Note that you must convert
; A list-of-num is either ; - empty ; - (cons num list-of-num)to
; A list-of-num is either ; - empty-num-list ; - cons-num-list ; An empty-num-list is ; (make-empty-num-list) (define-struct empty-num-list ()) ; A cons-num-list is ; (make-cons-num-list num list-of-num) (define-struct cons-num-list (first rest))
Last update: Monday, November 3rd, 2003mflatt@cs.utah.edu |