Topic 8 · Programming · 8.1

Programming Concepts Explained Simply

A computer program is a set of precise instructions. Like a recipe, every step must be clear, complete and in the correct order.

Invitation

What does a program really do?

Apps, games and websites can look complicated, but underneath they are built from instructions.

Each instruction tells the computer to carry out one small task. When those instructions work together, the computer can solve a much larger problem.

Think small first: one instruction, then the next, then the next.
Figure 1
Small instructions build a complete program
Input some data
Process the data
Produce an output
Big Idea

A program is a precise set of instructions

Programming is the process of writing instructions that tell a computer exactly what to do.

The computer follows those instructions in the order they are written. It does not understand your intention. It only follows the instructions it has been given.

Key idea: a computer is fast and accurate, but it cannot guess missing steps.
Figure 2
Instruction flow
1. Read instruction
2. Carry it out
3. Move to the next
FutureLogic Bridge

Programming is like following a recipe

A recipe is simply a list of instructions that must be followed in the correct order. A computer program is exactly the same.

The computer cannot guess what you mean—it follows each instruction exactly as it is written.

If a recipe misses a step, uses the wrong amount or puts the steps in the wrong order, the result may fail. Programming works in the same way.

Clear instructions create predictable results.
Figure 3
A recipe must be followed in order
1. Add ingredients
2. Mix them
3. Bake the mixture
Doing step 3 before step 1 would not work.
Worked Example

Turn a simple task into instructions

Suppose a program needs to ask for a student's name and then greet them.

1Ask for the name
2Store the name
3Display the greeting
PseudocodeSimple sequence
OUTPUT "Enter your name"
INPUT Name
OUTPUT "Hello ", Name

What happens?

The computer asks for a name, stores the answer in Name, and then uses that stored value in the output.

Input: Mark → Output: Hello Mark
Exam Tip

Use precise programming language

When defining a program, avoid vague phrases such as “something the computer runs.”

A strong answer is: “A program is a sequence of instructions written to make a computer perform a task.”

When a question gives a scenario, link your answer directly to that scenario rather than giving a generic response.

Common Mistake

“The computer knows what I mean.”

A computer does not fill in missing steps or correct unclear instructions by itself.

Incorrect idea: “The computer will understand the task.”
Correct answer: “The computer follows the instructions exactly as written.”
Figure 4
Instructions control the result
Clear instruction
Expected result
Wrong instruction → wrong result
Summary

What should you remember?

1A program is a set of instructions.
2The instructions must be precise.
3The computer follows them in order.
Programming begins by breaking a task into small, clear steps.