Module 3.0 - Conditionals
Materials
Required Reading
- Computer Science I: Chapters 3, 16
- Why Can't Programmers.. Program? Links to an external site.
- How to think like a programmer – lessons in problem solving Links to an external site.
Required Viewing
- 3.1 – Introduction Links to an external site. (5:14)
- 3.2 – Conditionals Links to an external site. (7:35)
- 3.3 – Logical Operators Links to an external site. (6:28)
- 3.4 – Common Errors & Mistakes Links to an external site. (5:05)
- 3.5 – Exercises Links to an external site. (16:29)
- Notes Links to an external site.
Activities
Handouts
- Lab 3.0: Conditionals
- Hack 3.0: Conditionals Links to an external site.
Resources
- TBD
Videos
3.1 – Conditionals – Introduction Links to an external site.
An introduction and motivation for conditional statements, comparison operators and logical operators.
3.2 – Conditionals – Conditionals Links to an external site.
An introduction to if
, if-else
, and if-else-if
conditional statements in C.
3.3 – Conditionals – Logical Statements Links to an external site.
Logical operators in C including negation, logical and, or operators.
3.4 – Conditionals – Common Errors & Pitfalls Links to an external site.
A presentation of several common errors, misconceptions and pitfalls when working with conditionals and logical operators.
3.5 – Conditionals – Exercises Links to an external site.
Several exercises illustrating logical statements and conditionals in C.