
Iteration plans - part 1
The first exercise in this series asks to analyze and cluster 9 small snippets of code.
Type: program comprehension and analysis
Topic: Goals and plans for iteration
Exercise purpose: The exercise prepares to introduce the typical iteration goals and plans with their terminology. Nine code snippets with loops are presented; similarities and differences are to be found in their structure and semantics.
Text: in English
Solution: Files with answers to the questions
The previous exercise opens up to the presentation of the topic 'plans for iteration', with the related RAT
Type: Lecture notes
Topic: Goals and plans for iteration
Exercise purpose: These lecture notes introduce the concept of goal & plans, and list some typical iteration goals/plan. The lecture notes are associated with a Reading Assessment Test (RAT) to be passed before doing the subsequent exercises on iteration plans.
Text: in English
Reading Assessment Test:
In the final exercise other code fragments must be analyzed and classified using the iteration plans just introduced:
Type: program comprehension and analysis
Topic: Goals and plans for iteration
Exercise purpose: Getting familiar with the terminology about iteration plans; practicing in recognizing plans in code. In this exercise seven code snippets must be analyzed and classified as using on of the following iteration plans: repetition, total plan, counting plan, linear search, extreme value, adjacent values.
Text: in English