|   | 
   
    | 
      | Learning objectives for chapter 6 |  | 1 | Learn to use the if-statement to skip over statements in case conditions are not met. |  | 2 | Learn to use if-else logic to select one set of statements or another depending on conditions being met. |  | 3 | Learn to combine comparisons with and-logic and or-logic, using the and and or operators. |  | 4 | Learn how to implement validation loops to gather valid console input. |  | 5 | Learn how to repeat code using a while-true-if-break loop. |  | 
   
    |  | Learning objective(s) addressed | 
   
    |  | 1 | 2 | 3 | 4 | 5 | 
   
    | Exercises | Right-click (or control-click on a Mac) the title to save its PDF to your system. |  | 
   
    | 6.1 | Three-Question Quiz, v.1.0 PDF | X |  |  |  |  | 
   
    | 6.2 | Input Validation PDF | X | X |  | X |  | 
   
    | 6.3 | Making Change, v.3.0 PDF | X |  |  |  |  | 
   
    | 6.4 | Temperature Conversion, v.2.0 PDF |  |  |  |  | X | 
   
    | 6.5 | Coin Toss, v.1.0 PDF | X | X |  |  |  | 
   
    | 6.6 | Over-Under Guessing Game, v.1.0 PDF | X |  |  |  |  | 
   
    | 6.7 | Over-Under Guessing Game, v.2.0 PDF | X |  |  |  | X | 
   
    | 6.8 | The Game Of War, v.1.0 PDF | X |  |  |  |  | 
   | 
 |  | 
   
    | Samples | Right-click (or control-click on a Mac) the title to save its PDF to your system. |  | 
   
    | 6.1 | About For-loops PDF | X | X |  |  |  | 
   | 
 |  | 
   
    | Videos |  | 
   
    | 6.1 | Click HERE for a YouTube-like video that shows how to develop code and algorithms with if-logic.
     It's 19 minutes long, with most of it covering the development of an algorithm to solve a problem.
     The code development is in Java (on a Mac), but it's use of the if-statement and else-if logic is exactly the same as it would be in Python, so it's suitable for students of any computer language. |  | X | X |  |  | 
   | 
 | 
   | Code from the chapter in order of their appearance in the text | 
   
    |  |