4.1.6
Turning an Algorithm into an App (2/2)
Turning an Algorithm into an App
Turning an Algorithm into an App
You need to follow a few more steps to complete your app.


Event and Control blocks
Event and Control blocks
- You then need to add blocks of code called 'Event and Control blocks'.
- Event and Control blocks give ‘if … then’ and ‘repeat until…’ instructions.
,h_400,q_80,w_640.png)
,h_400,q_80,w_640.png)
Examples
Examples
- Event and Control blocks control the following in the basketball game:
- What happens if the mouse is moved? → the red block moves.
- What happens if the ball touches a wall or the hand? → the ball bounces.


Other examples
Other examples
- Event and Control blocks control the following in the basketball game:
- What happens if the ball touches each ‘basket’? → the score of the shooting team goes up.
- When does the game end? → first team to get to 5 points.
,h_400,q_80,w_640.png)
,h_400,q_80,w_640.png)
Variables blocks
Variables blocks
- Blocks of code that create variables are called variable blocks.
- Variables are things that can change.
- Variable blocks of code give instructions for the selection of:
- the colour, time, distance, the angle of bounces, etc.
1Using Computers
1.1Computers as a Tool
1.3Plagiarism & Illegal Sharing
2Networks & the World Wide Web
3Computational Thinking
Jump to other topics
1Using Computers
1.1Computers as a Tool
1.3Plagiarism & Illegal Sharing
2Networks & the World Wide Web
3Computational Thinking
Unlock your full potential with Seneca Premium
Unlimited access to 10,000+ open-ended exam questions
Mini-mock exams based on your study history
Unlock 800+ premium courses & e-books