In general algorithms is a name given to a defined set of steps used to complete a task. For example...
-
Upload
shannon-jefferson -
Category
Documents
-
view
212 -
download
0
Transcript of In general algorithms is a name given to a defined set of steps used to complete a task. For example...
• 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
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
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
• If student's grade is greater than or equal to 60
• Print "passed" • else • Print "failed"
Pseudo code
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
Copyright © 2022 FDOCUMENTS