Iteration plans - part 3
We now propose some exercises where the implementation of the some iteration plan must also consider how to handle the input.
The last exercises helps enhancing and strengthen the ability to identify and implement iteration plans when desgining and writing programs.
Two writing tasks guided by questions
Type: Program writing guided through questions
Topic: Goals and plans for iteration
Exercise purpose: The exercise helps to consolidate iteration plans and to focus on which variables are used in a plan, and how and where they must be initialized and then updated. In particular here a counting plan is needed, with a Stepper variable initialized to zero before the loop and incremented on condition inside the loop.
Text: in English
Type: Program writing guided by observations
Topic: Goals and plans for iteration
Exercise purpose: The exercise helps to consolidate iteration plans and to focus on which variables are used in a plan, and how and where they must be initialized and then updated. In particular here a plan for processing adjacent elements is needed.
Text: in Italian
