Functional Problem Solving (CSC 151 2015F) : EBoards

CSC151.01 2015F, Class 3*11: Turtle Graphics


Overview

Preliminaries

Admin

Upcoming Work

Extra Credit Opportunities

Academic

Peer Support

Upcoming Peer Support

Other Good Stuff to Do

Questions

What are the differences between functional and imperative?

Pure functional languages assume that when you call a function, it returns a new value and doesn't change anything. Imperative langauges are all about change.

Imperative languages often have a much more explicit order of evaluation

Scheme is both functional and imperative. (And object-oriented.) (And awesome.)

_For Part A on the homework, do you want a chunk of code or a procedure?

I'd prefer a procedure, but the specifications don't make it clear, so I'd accept a chunk of code.

Don't the line lengths vary already?

We'd like you to vary them more explicitly. Make it a percentage of the distance from starting point to ending point.

Quiz

Problem 2 hint: Count UP!

Lab

NO WRITEUP TODAY! (But do the whole lab; you'll learn a lot, and maybe even have some fun.)

    (define image-clear
      (lambda (image)
        (context-set-fgcolor! "white")
        (image-select-nothing! image)
        (image-fill! image)))