Questions tagged [branching]

This tag can be appropriately applied to questions on teaching and using `if` and `switch` statements along with similar constructs in other languages.

Filter by
Sorted by
Tagged with
4
votes
5answers
172 views

Uses of selection in programming (if, switch etc)

I am an experienced programmer that has just started teaching. I am struggling to see how to introduce selection to my programming classes. None of the examples that I have seen so far are good. I am ...
4
votes
2answers
283 views

Motivating examples for switch/case in Java

Students first see switch/case as a second syntax for if/...