Problem Solving Approach
Definition
Definition: Problem solving means understanding the goal, planning a solution and testing it - often by breaking a big task into smaller steps.
Steps
- 1
Understand: What exactly is the problem?
- 2
Plan: Break the task into steps.
- 3
Test: Run and check; debug errors.
Decision Making in Programs
Definition
Definition: Programs often need to make decisions: 'if something is true, do this, otherwise do that'.
- A condition is a check that is either true or false.
- if block - runs the inside blocks only when the condition is true.
- if-else block - one path when true, another when false.
Loops
Definition
Definition: Loops repeat actions without writing the same blocks again and again.
- 1
repeat n: Repeats the inside blocks n times.
- 2
repeat until: Repeats until the condition becomes true.
- 3
forever: Repeats until the program is stopped.
Building with Scratch 3.0
Definition
Definition: Scratch is a block-based coding tool: the sprite (character) acts on the stage, and puzzle-like blocks snap together to give it instructions.
- Combine decision blocks and loops to build animated stories and simple games.
- Debugging means finding and fixing errors in your program.
- Test your program step by step.
