← Pre-Technical Studies / 2 Communication in Pre-Technical Studies
2.2 Visual Programming
Pre-Technical Studies · Grade 9 · 15 lessons in the design
What this covers
- Meaning of visual programming and how it differs from typed programming
- The parts of a visual programming environment: stage, sprites, block palette and script area
- Event blocks and how a script is started
- Motion blocks and the coordinate system of the stage
- Looks and sound blocks
- Sequence: the order of blocks in a script
- Loops: repeat, forever and repeat until
- Conditional statements: if, and if else
- Sensing blocks and conditions
- Variables: creating, setting and changing them
- Operators: arithmetic, comparison and random numbers
- Testing and debugging a script
- Planning, building and presenting a project
What you will be able to do
- explain the meaning of visual programming
- identify the parts of a visual programming environment
- create scripts using event, motion, looks and sound blocks
- apply sequence, loops and conditional statements in a script
- use variables and operators in a project
- test and debug a script
- develop and present a visual programming project
- appreciate the use of visual programming in solving problems
Key questions
“How do we make a computer do what we want without typing code?”
Lessons
The titles are open to everyone. Reading a lesson needs an account — sign in or create one.
-
What visual programming is
40 min · 1 practice tasks · quizDragging blocks that snap together instead of typing text. Same logic, no typos.
-
The four parts of the screen
40 min · 1 practice tasks · quizPalette, script area, stage, sprite list. Every sprite has its own scripts.
-
Event blocks
40 min · 1 practice tasks · quizThe domed top means the script starts here. Nothing runs without one.
-
Motion and the stage grid
40 min · 1 practice tasks · quizThe centre is 0,0. Move follows whichever way the sprite is pointing.
-
Looks and costumes
40 min · 1 practice tasks · quizCostumes plus a loop is all that animation is.
-
Sound
40 min · 1 practice tasks · quizUntil done waits. Start sound does not. Starting a sound in a loop makes a buzz.
-
Sequence: order is the program
40 min · 1 practice tasks · quizA script runs top to bottom. The same blocks in two orders are two programs.
-
Loops
40 min · 1 practice tasks · quizRepeat, forever and repeat until. A loop is why programs are short.
-
Making a decision
40 min · 1 practice tasks · quizIf and if else. An if is checked once, so put it in a forever loop to keep watching.
-
Sensing
40 min · 1 practice tasks · quizHexagons answer yes or no. Ovals hand back a value. Answer is overwritten by the next ask.
-
Variables
40 min · 1 practice tasks · quizA labelled box. The name stays, the value changes, and it survives between runs.
-
Operators
40 min · 1 practice tasks · quizArithmetic, comparison and random. Operators drop into other blocks and nest.
-
Debugging
40 min · 2 practice tasks · quizRead it aloud one block at a time. Debugging is reading, not guessing.
-
Planning a project
40 min · 1 practice tasks · quizSix questions first, then build in four tested stages.
-
Build it: the whole sub-strand in one script
40 min · 1 practice tasks · quizEvent, variable, loop, condition. That shape builds almost anything.