Functional Problem Solving (CSC 151 2016S) : EBoards

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


0. Pick up a card.
1. Read the computer name on the card you received
2. Using the map to identify the computer.
3. Return the card to the jar.
4. Process to the computer which was named on the card.
5. Sit down
6. The person sitting next to you is your partner
7. If you have not met your partner, introduce yourself to your partner

Overview

Preliminaries

Admin

Upcoming Work:

Extra Credit

Academic

Peer

Future

Miscellaneous

Questions

Lab

Yes, it is intentional that (square 4) doesn't work.

Yes, it's okay to experiment. You are unlikely to break anything important, and you can blame me if you do.

Debrief

Does whitespace matter?

(define x 3)
(define                               x                 3) ; OK
(d e f i n e x 3)   ; Probably not
(definex3) ;  Probably not
(+ 3 (* 4 5))
(+ 3 (* 45))
(+ 3(* 4 5)); OK
(+3 (* 4 5)) ; NO, +3 is not an operation

How were you sure of the answer it gave for the square root?

> (sqrt 13543123)
371

Observations