Functional Problem Solving (CSC 151 2014F) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Project teams will normally have one person who is particularly good at design, one who is particularly good at coding, and one who is particularly good at coordinating people (which probably includes coordinating writing). * Everyone will contribute to all three aspects, but I think teams are more likely to succeed if you ensure that you have all of these characteristics on your team.
Instructions
Overview
I'm worried that my polygon procedures are drawing polygons at the top-left corner of the image, rather than at the center, as it shows in the examples.
Your procedures should draw the polygons wherever the turtle is. If the turtle starts in the top-left corner, then you should draw the polygon there.
In problem 2 how do I test for errors?
Look at exercise 3 in the lab on unit testing. http://www.cs.grinnell.edu/~rebelsky/Courses/CSC151/2014F/labs/rackunit-basic-lab.html
_How do I determine if a character is upper case?
char-upper-case?
How do I tell if all of the numbers in a list are even?
(define all-even?
(lambda (lst)
(or (null? lst)
(and (even? (car lst))
(all-even? (cdr lst))))))
(all even? lst)
(any even? lst) ; Don't use this for they are all even
Options
Things students want Sam to write or help write
Have a turtle select things in the image
(turtle-begin-selection! turtle)
(turtle-end-selection! turtle OP)
Do image-compute!
only for part of an image.
image-recompute!
image-transform!
only for part of an image.
image-transform!
Notes from your experienced mentors