In general algorithms is a name given to a defined set of steps used to complete a task. For example...

5
• In general algorithms is a name given to a defined set of steps used to complete a task. • For example to make a cup of tea you would fill the kettle, turn it on and so on • In computer terms algorithms describe a set of instructions to make a program work Algorithms

Transcript of In general algorithms is a name given to a defined set of steps used to complete a task. For example...

Page 1: In general algorithms is a name given to a defined set of steps used to complete a task. For example to make a cup of tea you would fill the kettle, turn.

• In general algorithms is a name given to a defined set of steps used to complete a task.

• For example to make a cup of tea you would fill the kettle, turn it on and so on

• In computer terms algorithms describe a set of instructions to make a program work

Algorithms

Page 2: In general algorithms is a name given to a defined set of steps used to complete a task. For example to make a cup of tea you would fill the kettle, turn.

In computer terms algorithms are a set of instructions to carry out a software task. Many games programmers use algorithms when they are planning their games.

Algorithms

Page 3: In general algorithms is a name given to a defined set of steps used to complete a task. For example to make a cup of tea you would fill the kettle, turn.

Programmers use Pseudo code to describe their algorithms. Pseudo code does not follow any programming language It sets out the algorithm with statements written in English

Pseudo code

Page 4: In general algorithms is a name given to a defined set of steps used to complete a task. For example to make a cup of tea you would fill the kettle, turn.

• If student's grade is greater than or equal to 60

• Print "passed" • else • Print "failed"

Pseudo code

Page 5: In general algorithms is a name given to a defined set of steps used to complete a task. For example to make a cup of tea you would fill the kettle, turn.

Below is an example of pseudo code for a game in scratch. When green flag is clicked Move car 10 steps forever If touching greenStop

Pseudo code