Functional Problem Solving (CSC 151 2015F) : Outlines

Outline 18: Conditionals


Held: Monday, 28 September 2015

Back to Outline 17 - Programming the GIMP Tools. On to Outline 19 - Pause for Breath.

Summary

We begin to explore Scheme's conditional control structures, particularly if, when, and cond.

Related Pages

Overview

Administrivia

Upcoming Work

Extra Credit Opportunities

Academic

Peer Support

An Exam Note

What should I do if I got the following as sample output on problem 3?

> (seconds (add-times (time 0 0) (time 0 97)))
37
...
> (seconds (add-times (time 0 0) (time 0 97)))
97

The Parts of an Algorithm

Remember those? We did them early on in the semester.

How many of these do we know? Almost all of them.

Choosing Between Options with if

Optional Evaluation with when

Choosing Between Multiple Options with cond

Comparing Approaches