Teacher Boen Resource Library · Kenya CBC/CBE
Grade 8 · Pre-Technical Studies

2.4 Visual programming

Detailed communication notes · Strand 2 Communication in pre-technical studies

Meaning of Visual Programming

Visual programming is a method of creating computer programs using graphical blocks instead of typed text commands.

Users drag and drop blocks that fit together like puzzle pieces.

Visual Programming Applications

A visual programming application is software that provides a graphical environment for creating programs.

Importance of Visual Programming

1. Easy for Beginners

Learners can create programs without learning complex programming syntax.

2. Reduces Errors

Blocks fit together correctly, reducing mistakes.

3. Encourages Creativity

Learners can create animations, games, and stories.

4. Develops Problem Solving Skills

Programming teaches logical thinking.

5. Builds a Foundation for Coding

Prepares learners for advanced programming languages.

Types of Visual Programming Applications

Educational Applications

Used to teach programming concepts.

Examples:

  • Scratch
  • Microsoft MakeCode
  • Blockly
  • Sprite Box

Multimedia Applications

Used to create:

  • Animations
  • Stories
  • Interactive media

Examples:

  • Scratch
  • MIT App Inventor

Video Game Applications

Used for game development.

Examples:

  • GameMaker
  • Construct
  • Stencyl

Features of Visual Programming Applications

Input Area

Area where blocks are arranged.

Output Area

Area where results are displayed.

Blocks Palette

Contains available coding blocks.

Categories include:

  • Motion
  • Looks
  • Sound
  • Events
  • Control
  • Sensing
  • Variables

Processing Engine

Runs and executes instructions.

Effects

Special features such as:

  • Sounds
  • Animations
  • Backgrounds
  • Sprite movements

Common Terminologies

Syntax

Rules that control how programs are created.

Variable

A named storage location used to store information.

Example:

score = 0

Input Statement

Receives information from the user.

Example:

Ask a question block.

Output Statement

Displays information.

Example:

Say Hello block.

Coding Block

A graphical command that performs a specific action.

Sequence Statement

Instructions executed one after another.

Repeating Statement (Loop)

Repeats actions several times.

Example:

Repeat 10 times.

Selection Statement (Conditional)

Makes decisions.

Example:

If touching edge then bounce.

Variable Declaration

Creating and naming a variable.

Creating Programs Using Visual Programming

Step 1

Open the visual programming application.

Step 2

Study the interface.

Components include:

  • Blocks palette
  • Script area
  • Stage
  • Sprite list

Step 3

Create a sequence of actions.

Example:

Move → Speak → Turn

Step 4

Add effects.

Examples:

  • Sound effects
  • Background changes
  • Animations

Step 5

Use loops to repeat actions.

Step 6

Use conditionals to make decisions.

Step 7

Create and use variables.

Example Program

When green flag clicked

Set score to 0

Repeat 5 times

Move 20 steps

Play sound

Increase score by 1

Display final score

Applications of Visual Programming

  • Educational software
  • Mobile games
  • Animations
  • Robotics
  • Smart homes
  • Automated systems

Summary

Communication in Pre Technical Studies enables learners to communicate technical ideas accurately through drawings, measurements, scales, and computer programs. Plane Geometry provides the foundation for technical drawing, Dimensioning ensures accurate measurements, Plain Scale Drawing allows representation of objects proportionally, and Visual Programming introduces learners to the world of coding and digital problem solving. Together, these skills prepare learners for further studies and careers in engineering, technology, architecture, construction, and computer science.