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)]
Overview
What should we submit for the labs?
Why can't I get the image to show up on the reading for tomorrow?
image-show.What if I want to see the full circle?
(define d2 (hshift-drawing 50
(vshift-drawing 50 d1)))
What is this strange (provide (all-defined out)) incantation?
(export ...) says which definitions get exported (export (all-defined out)) says "export everything I've defined; don't
make me retype"Extra 1 on yesterday's lab asks us to round a number to the hundredth place. How do we do that?
How can we see what's defined?
Will you ask us some questions so that we can check our knowledge?
When do floor and truncate give the same value? When do floor and truncate give different values?
Reminder: What are the key components of an algorithm?
define in all of the Scheme code Sam typedFill in the following table
val -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7
(mod val 5) 2 3 4 0 1 2 3 4 0 1 2 3 4 0 1 2
(rem.. val 5) -3 -2 -1 0 -4 -3 -2 -1 0
Why might you ever want the mod operation?
How might you explain the mod operation to someone who didn't
understand it?