Functional Problem Solving (CSC 151 2015S) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric] - [Calendar]
Current: [Assignment] [EBoard am] [EBoard pm] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards am] [EBoards pm] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014F)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Book Office Hours] - [Issue Tracker (Course)]
Overview
"Write a procedure, (centered-circle side left top)", means
The procedure name is
centered-circleThe parameters are
side,left, andtopI should write
(define centered-circle
(lambda (side left top)
...))
Gimp, MediaScheme->DBus Server, Check for DrRacket 5.3.6 will become automatic
You are learning a vocabulary. You have some responsibility to remember the words and the parameters. You should find the best way to do that for you. I recommend the index cards for reference.
One experiment is not enough!
; inputs val, lower-bound, upper-bound
> (bound 5 0 10)
> (bound -5 0 10)
> (bound 15 0 10)
> (bound 5 10 0)
; inputs to centered-square: edge-length, center-x, center-y
> (image-show (drawing->image (centered-square 40 50 60) 100 100))
> (image-show (drawing->image (centered-square 20 40 30) 100 100))
> (drawing-width (centered-square 1000 20 30))
...
> (image-show (drawing->image (centered-square -20 40 30) 100 100))
Level 1: When I click "Run", it doesn't complain.
Level 2: When I enter an expression, it doesn't complain.
Level 3: When I enter an expression, it produces something close to the value that I expect.
Level 4: When I enter an expression, it produces something I know is correct.
Level 5: When I enter a large variety of expressions, it always produces the right thing.
Sarah says "Hit enter so that it's clean and pretty."
Samh says "After hitting enter, use Ctrl-I
DrRacket will crash.
You will accidentally close the window.
Saving will make you happier, and should be automatic.