Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;really not impressed with the racket language at all... after python, it's just ugly with all of its parens.
- ;and no tab completion! ugh!
- ;I DO like the image support and that is the only reason I keep pressing on.
- ;The manual was written by someone who was angry most of the time
- ;http://www.ccs.neu.edu/home/matthias/HtDP2e/part_one.html#%28counter._%28exercise._arith-n%29%29
- ;
- ;
- (define cat (image of cat here))
- ;Create an expression that computes the area of the image.
- ;See exercise 1 for how to create expressions in DrRacket.
- ;(string-append "the width of the cat is" (image-width cat))
- (string-append "the width of the cat is " (number->string(image-width cat)))
- (string-append "the height of the cat is " (number->string(image-height cat)))
- (string-append "the area of the cat is " (number->string(* (image-height cat) (image-width cat)))) ;god this is ugly
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement