State Functions of Algorithms: They are used to perform Calculations, Data Processing, Automated reasoning etcNot covered here. Our lesson note covers it.
State and explain the properties of Algorithm Input specified Output specified: Definiteness, Effectiveness, Finiteness etcNot covered here. Our lesson note covers it.
An algorithm is a series of defined logical steps that can be followed to solve a problem.
A computer program is a way of implementing an algorithm, by writing it in a language that a computer can understand.
A single algorithm can be implemented in many different computer programs.
Keywords
algorithm
a set of step-by-step instructions to solve a problem
computer program
a way of implementing an algorithm by writing it in a language that a computer can use
logic
a system of rules that determine the flow of instructions
A common mistake
Mistake:Algorithms and computer programs are actually the same thing.
In fact:A computer program is a specific implementation of an algorithm's logic. A clearly written algorithm provides instructions that can be implemented in various ways including, but not limited to, computer programs.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.Read the licence
Lesson 2 of 3 · GCSE level, ages 14 to 16
Representing algorithms using flowcharts
By the end:I can create and represent an algorithm in a flowchart.
Flowcharts use symbols to visually represent logic and data.
Developing an algorithm's logic before coding makes problem solving easier.
Keywords
flowchart
a visual representation of an algorithm or program
symbol
a sign, shape or object that is used to represent something else
standardise
to make one thing the same as others of that type
A common mistake
Mistake:A flowchart should always be created before writing a computer program.
In fact:For simple programs, a flowchart may not be needed and could add to development time. Sometimes the program code itself might be clear enough without a flowchart.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.Read the licence
Lesson 3 of 3 · Lower secondary, ages 11 to 14
Builds the basics this topic needs
Writing a text-based program
By the end:I can create a text-based program from an algorithm that includes input and output.
An algorithm is a sequence of steps that can be followed to do a task.
A program is a set of commands that can be run by a computer in order for it to do a task.
All programming languages have rules for syntax that must be followed so that the program can run.
The print() function is used to output information from a Python program.
The input() function is used to input data from the user into a Python program.
Keywords
algorithm
a set of step-by-step instructions to solve a problem
program
a set of commands that can be run by a computer in order for it to do a task
syntax
the precise way that a program must be written to be understood by a computer
A common mistake
Mistake:Pupils will modify their code to provide input directly in to the input() function, for example, user = input("Aisha"), rather than typing when asked as the program runs.
In fact:The computer follows the instructions of a program. Input that a user has to type in should only be entered when the program runs. This allows different users to provide different inputs without changing the program in any way.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.Read the licence
The wording comes from each publisher. The layout and the links to your syllabus are ours.