EasyManua.ls Logo

LEGO Education WebDo 2.0 Toolbox - Introduction to Pseudocode

LEGO Education WebDo 2.0 Toolbox
37 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
©2017 The LEGO Group.
8
Program with WeDo 2.0
Program strings are designed for computers to understand, and pseudocode is
a way to explain a program so that people can understand it. Good pseudocode
respects program structures, but uses common words.
In WeDo 2.0, pseudocode can also be used to describe each step of a sequence.
There are no specific rules to follow when writing pseudocode, but you will see
that using a consistent structure will help you and your students while using it.
Example One
1. Start program
2. Start motor at power 1
3. Wait for 1 second
4. Stop motor
Example Two
1. Start program when “A” is pressed
2. Wait for Tilt Sensor to detect Shake
3. Start motor this way
4. Repeat steps 2 and 3 forever
Example Three
1. Start program when “A” is pressed
2. Wait for Tilt Sensor to detect No Tilt
3. Stop motor
4. Turn LED on colour 9 (red)
5. Repeat steps 2 to 4 forever
What is Pseudocode?

Related product manuals