Aa

Text size

?

Map / Decisions

🔀 Decisions

if and else let a program choose. Conditions are boolean expressions built with comparisons and &&, || and !.

  • if
  • else
  • else if
  • &&
  • ||
  • !
  • ==
  • !=
  • ? :

🛠 You will build: A grade and ticket calculator

0 / 9 done

  1. 🔮 Predict 1. Which branch?
  2. 👣 Trace 2. && and ||
  3. 🧩 Order 3. The largest of three
  4. ✏️ Fill in 4. Even or odd
  5. 🐞 Debug 5. = is not ==
  6. 🐞 Debug 6. Order of the checks
  7. 🔧 Modify 7. Ticket prices
  8. ⌨️ Write 8. Letter grades
  9. ⌨️ Write 9. Leap years

Unit check

Earlier activities again, with new inputs and edge cases. They also come back on the map as review the next day.

  1. 🔮 Predict Check 1. Check: on the boundary
  2. ⌨️ Write Check 2. Check: small, medium, large