Thinking in code · Making decisions

Chains of checks

Grades, ticket prices and shipping rates have more than two outcomes, so a program checks one condition after another.