Class 18: Conditionals
Held: Tuesday, 21 February 2017
We consider one of the central components of algorithms.
Preliminaries
Overview
- The parts of an algorithm, revisited
- Choosing between two options with if
- Optional evaluation with when
- Making multiple choices with cond
- Comparing approaches
Related Pages
-
Reading: Conditionals
-
Lab: Conditionals
Updates
News / Etc.
- Continue partners!
- Exam 1 returned.
- I’m happy to talk to you about your work on the exam individually.
- I’m happy to answer general questions in our Q&A time.
- Please read the notes on the exam before meeting with me.
Rotating reminders
- Ask questions via email! I’m always happy to (try to) answer questions via email. If I take too long to answer, send another email (or even text, if it’s a reasonable hour).
Upcoming Work
- Assignment 4 due TONIGHT at 10:30 p.m.
- Lab writeup, problem ?, due Friday before class.
- Reading: The GNU Image Manipulation Program
- Reading: Programming the GIMP tools
Extra credit (Academic/Artistic)
- CS Table, TODAY at noon, 21 Feb 2017. Net neutrality. Reading packets should be available outside Curtsinger’s office or Orsera’s office (or at the back of our classroom)
- Women in CS, Tuesday, 21 February 2017: Applying for GHC Scholarships and more! (All are welcome to attend.)
- Thursday extras, Thursday, 23 Feb 2017, 4:15 p.m., Science 3821: The Future of MathLAN
- Met Opera Live in HD showing of Rusalka, Saturday, Feb. 25. Talk 11:30-noon, opera noon-3pmish.
- Prazak Quartet, Tuesday, 28 February 2017, 7:30 p.m., Herrick.
Extra credit (Peer)
- Ritalin Test squad, 2-4pm Saturday, Bucksbaum, The Wall
- NEW Jazz band concert Friday at 7:30 p.m. in Sebring-Lewis.
Extra credit (Misc)
- Host a prospective student. (March 5, April 8, April 23)
- NEW Fill out the Ologie survey at https://beehiveresearch.qualtrics.com/SE/?SID=SV_8qwPmzA0plsxCrb
Good things to do
- Diving championships this weekend
Some notes from yesterday
Please discuss with partner.
Can you solve exercise 3 without using lambda?
If the average of the three components of c1 is less than the average of the three components of c2, what does that tell you about the relationship of the sum of the three components of c1 to the sum of the three components of c2. (Or vice versa?)
Academic honesty on exam 1
Three of you did not sign the second statement. Take a few minutes to write down suggestions for what I should do. (You should have received an index card.) We will discuss your suggestions in the last few minutes of class.