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
How do we write an algorithm without formal experience?
You are sentient
You can use English
It's something I asked you to think about
How can I write an algorithm to add two numbers?
Teach someone to increment and decrement, and use repeated "increment first, decrement second"
Draw a line of length a inches, a subsequent line of length b inches, and measure the result.
Teach them to look it up in a table.
Teach them to use a calculator.
In what order does Scheme evaluate things?
Inside out
If you have multiple expressions, evaluates them first to last.
If a procedure is arithmetical and takes more than two parameters, we often think about doing it left to right.
Do all the definitions have to be in the definitions pane and all the non-definitions in the interactions pane?
Custom, not requirement.