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