Instructions form a sequence

A program might tell a computer to add two numbers and show the answer. The computer follows the written steps in order, unless the instructions tell it to make a choice or repeat a step. 1 2

Clear directions matter

A person can follow a recipe one step at a time. A computer also needs instructions that are exact enough for it to carry out the task. 1 2

Programs can repeat and make choices

A program can repeat a step, such as checking every item in a list, or choose what to do after checking a condition. For example, it might show a message if a password is too short. Programmers test programs because an unclear step can cause a mistake. 1 2