Algorithms and OOD (CSC 207 2014F) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [Learning Outcomes] [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Student-Curated Resources] [Java 8 API] [Java 8 Tutorials] [Code Conventions]
Related Courses: [CSC 152 2006S (Rebelsky)] [CSC 207 2014S (Rebelsky)] [CSC 207 2014F (Walker)] [CSC 207 2011S (Weinman)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)] [Issue Tracker (Textbook)]
New lab partners!
Overview
The mistakes faculty made: One of the problems on exam 3 showed up on a lab that students did while taking the exam. Here's our solution.
(define turtle-polygon!
(lambda (turtle side-length sides)
(let ([angle (- 180 (/ (* 180 (- sides 2)) sides))])
(repeat sides
(lambda (turtle)
(turtle-forward! turtle side-length)
(turtle-turn! turtle angle))
turtle))))
What would you do about a student who turned in an identical solution and did not cite ours?
Some data
(/ sides 360)
formula.)(repeat sides (lambda (turtle) ...)
turtle).