On this page:

  1. Lesson 1: If
    1. Lecture Notes on If
    2. Practice Set on If
      1. Deep Thoughts
      2. Home Federal Savings Bank
  2. Lesson 2: Booleans
    1. Lecture Notes on Booleans
    2. Practice Set on Booleans
      1. Sum Double
      2. Makes 10
      3. Math Interpreter
      4. Meal Time

Lesson 1: If

Lecture Notes on If

  1. Grab a paper copy of the template for Lecture Notes on If (or print one from here).
  2. Complete the notes while you watch from start to 24:15 of this David Malan lecture on Conditionals (~25 min).

Practice Set on If

Deep Thoughts

If you are feeling:

Less Comfy

or Mixed

Do the Deep Thoughts problem from Harvard’s CS50-P course, but skip the “How To Submit” part at the end.

Home Federal Savings Bank

If you are feeling:

More Comfy

Do the Home Federal Savings Bank from Harvard’s CS50-P course, but skip the “How To Submit” part at the end.

Lesson 2: Booleans

Lecture Notes on Booleans

  1. Grab a paper copy of the template for Lecture Notes on Booleans (or print one from here).
  2. Complete the notes while you watch from 25:10 to 42:29 of this David Malan lecture on Conditionals (~18 min).

Practice Set on Booleans

Sum Double

If you are feeling:

Less Comfy

Ask the user for two int values. Print their sum. Unless the two values are the same, then print double their sum.

(source: codingbat)

Makes 10

If you are feeling:

Less Comfy

Ask the user for two int values. Print “Makes 10” if one of them is 10, or if their sum is 10. Otherwise print “Nope”.

(source: codingbat)

Math Interpreter

If you are feeling:

Mixed

Do the Math Interpreter problem from Harvard’s CS50-P course, but skip the “How To Submit” part at the end.

Meal Time

If you are feeling:

More Comfy

Do the Meal Time problem from Harvard’s CS50-P course, but skip the “How To Submit” part at the end.