New lab partners!
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?
(/ sides 360)formula.)
(repeat sides (lambda (turtle) ...)turtle).