[Current] [News] [Glance] [Discussions] [Instructions] [Search] [Links] [Handouts] [Outlines] [Readings] [Labs] [Homeworks] [Quizzes] [Exams] [Examples] [Fall2000.01] [Spring2000]
Back to Procedure definitions. On to Repetition with recursion.
Held Friday, September 8, 2000
Summary
Today we begin to learn how to tell Scheme to make decisions. The procedures used to make decisions are called conditionals.
Notes
http://blackboard.grinnell.edu
Overview
if
cond
if(if condition success-value failure-value)
(if (>= grade 94) 'A 'F)
(if (>= grade 94)
'A
(if (<= 90 grade 93)
'Aminus
(if (<= 87 grade 90)
...
)
)
)
cond, which more closely resembles a table.
cond expression looks like
(cond (condition value) (condition value) (condition value) ... (else value) )
(cond ((>= grade 94) 'A) ((<= 90 grade 93) 'Aminus) ... )
Thursday, 24 August 2000
Friday, 8 September 2000
Back to Procedure definitions. On to Repetition with recursion.
[Current] [News] [Glance] [Discussions] [Instructions] [Search] [Links] [Handouts] [Outlines] [Readings] [Labs] [Homeworks] [Quizzes] [Exams] [Examples] [Fall2000.01] [Spring2000]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
This page may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2000F/Outlines/outline.09.html
Source text last modified Wed Sep 13 10:49:51 2000.
This page generated on Wed Sep 13 10:49:58 2000 by Siteweaver. Validate this page's HTML.
Contact our webmaster at rebelsky@grinnell.edu