in solving a be referred to by their identifier. then the algorithm can execute a pre-written command problem. LINK Abstraction, connecting instead of the programmer writing lots of code.s computational thinking and program For example, if the language contains a SUM command for design, introduction to programming. adding up an array, then it's not necessary to write a loop. Instead, just write : ANSWER = SUM(NUMBERS) Thinking logically 4.1.4 Identify when 2 Links to procedural In PSEUDOCODE, decisions are written as IF...THEN… is required in a procedures. In FLOW-CHARTS, use a Diamond to represent a decision. specified situation. TOK Reasoning as a form of LINK Connecting computational thinking and program design, introduction to programming. 4.1.5 Identify the decisions 2 Different actions are taken based on Common decisions are: required for the solution to conditions. Strings : if ANSWER = "YES" then… a specified problem. LINK Connecting computational Numbers : if AGE > 21 then … thinking and program design, Boolean : if FOUND = TRUE then ... introduction to programming. AIM 4 Applying thinking skills to identify and resolve a specified complex problem. 4.1.6 Identify the condition 2 Testing conditions, iteration. Identifying Compound BOOLEAN conditions us AND, OR, NOT associated with a given and constructing the conditions—AND, For example : decision in a specified OR, NOT relationships—Boolean tests. if AGE >= 13 AND AGE <=18 then problem. LINK Connecting computational SCHOOL = "High School" thinking and program design, end if introduction to programming. if = "SAT" OR TODAY = "SUN" then output "Weekend" end if if NOT( PASSWORD = "magic" ) then output "Wrong Password"
in solving a problem. be referred to by their identifier. LINK Abstraction, connecting computational thinking and program design, introduction to programming. then the algorithm can execute a pre-written command instead of the programmer writing lots of code.s For example, if the language contains a SUM command for adding up an array, then it's not necessary to write a loop. Instead, just write : ANSWER = SUM(NUMBERS) Thinking logically 4.1.4 Identify when is required in a specified situation. 2 Links to procedural procedures. TOK Reasoning as a form of LINK Connecting computational thinking and program design, introduction to programming. In PSEUDOCODE, decisions are written as IF...THEN… In FLOW-CHARTS, use a Diamond to represent a decision. 4.1.5 Identify the decisions required for the solution to a specified problem. 2 Different actions are taken based on conditions. LINK Connecting computational thinking and program design, introduction to programming. AIM 4 Applying thinking skills to identify and resolve a specified complex problem. Common decisions are: Strings : if ANSWER = "YES" then… Numbers : if AGE > 21 then … Boolean : if FOUND = TRUE then ... 4.1.6 Identify the condition associated with a given decision in a specified problem. 2 Testing conditions, iteration. Identifying and constructing the conditions—AND, OR, NOT relationships—Boolean tests. LINK Connecting computational thinking and program design, introduction to programming. Compound BOOLEAN conditions us AND, OR, NOT For example : if AGE >= 13 AND AGE <=18 then SCHOOL = "High School" end if if = "SAT" OR TODAY = "SUN" then output "Weekend" end if if NOT( PASSWORD = "magic" ) then output "Wrong Password"
Section4.docx