Instructor Manual for Introduction to Computing and ...

The for-each loop is easiest for students to understand. Research on beginning programmers shows that they understand set operations, like do this for each member of a set. We introduce the while loop before the for loop because it is easier for students to understand the for loop after they have seen the while loop. ................
................