Functional Problem Solving (CSC 151 2015S) : EBoards

CSC151.02 2015S, Class 03: An Introduction to Scheme


Overview

Preliminaries

Admin

Upcoming Work

Extra Credit Opportunities

Academic

Peer Support (Afternoon Section)

Recommended Events (no EC unless mentioned above)

Questions on Algorithms

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.

Questions on Scheme

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.

Quiz!

Lab