Functional Problem Solving (CSC 151 2016S) : EBoards

CSC151.02 2016S, Class 34: Turtle Graphics


Overview

Preliminaries

Admin

Reminders

Upcoming Work:

Extra Credit

Academic / Artistic

Peer

Miscellaneous

Regular Peer

Misc

Far in the Future

Questions

How does Misc. extra credit work?

I apply it to either Academic or Peer, depending on which you have not yet maxed out.

What were the writeups for class 31 and 32?

I don't think there were any.

Does diet dew still taste good after eight bottles in two days?

I'm not sure it ever tasted good, but it certainly is no longer appealing.

Lab 1: Local Bindings

Writeup for Class 33: Exercise 4b

Some sample inputs

> (tally-brights (map color->irgb (list "white" "black" "white" "white")))
> (tally-brights null)
> (tally-brights (map color->irgb (list "black" "white" "black" "white" "black")))
> (tally-brights (map color->irgb (list "black" "black" "black" "black" "black")))
> (tally-brights (map color->irgb (list "white" "white" "white" "white" "white")))

Improved

> (define white (color->irgb "white"))
> (define black (color->irgb "black"))
> (tally-brights (list white white black white black))

Lab 2: Turtle Graphics

Writeup for Class 34: 3n, 4i