SmartStart_Curriculum_3.1_en
Smart Start Curriculum. Area 3: Algorithmic thinking 55 / 76 Before coding, the task can be decomposed into smaller questions: • What information does the program need? • What rule determines whether the learner has passed? • What should happen when the condition is met? • What should happen when it is not met? • What result should the program display? The solution can then be represented as: Input score → compare score with pass threshold → select an appropriate message → display output This illustrates an important principle: coding begins with thinking about the problem, not with writing code . 2.2 Sequence, Selection, and Iteration in Practice Three basic algorithmic structures become particularly evident in code: sequence, selection, and iteration (Bocconi et al., 2016). Sequence means performing instructions in a particular order. For example: • ask for the learner's name • ask for their score • calculate the result • display feedback Selection allows a program to choose between different actions depending on whether a particular condition is met: IF the score is 50 or higher, THEN display “Passed”, ELSE display “Try again”. Iteration involves repeating an action or sequence of actions. For example: Repeat the question until the learner provides the correct answer.
Made with FlippingBook
RkJQdWJsaXNoZXIy MjQzMTQ4