On this page:
Lesson 1: If
Lecture Notes on If
- Grab a paper copy of the template for Lecture Notes on If (or print one from here).
- 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
- Grab a paper copy of the template for Lecture Notes on Booleans (or print one from here).
- 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.