Make use of learning from the previous four lessons
Start to write our code in Mu
3 of 5
What is Pseudocode?
Not a programming language
No standard notation, these are most recognised:
INPUT - User inputs something
OUTPUT - Output appears from computer
WHILE - a loop that has a condition at the beginning
FOR - a counting loop
REPEAT - UNTIL - a loop that has a condition at the end
IF - THEN - ELSE - a decision in which a choice is made
Indent instructions inside a decision or loop
A program that asks people what the best subject they take is:
REPEAT� OUTPUT 'What is the best subject you take?'� INPUT user inputs the best subject they take� STORE the user's input in the answer variable� IF answer = 'Computer Science' THEN� OUTPUT 'Of course it is!'� ELSE� OUTPUT 'Try again!'�UNTIL answer = 'Computer Science'
4 of 5
What will your micro:bit do?
Text and Images
Animations
Sensors and Buttons
NeoPixel
All slides are on the VLE!�Start to write your pseudocode out on A3 paper and then write it in Mu when you are ready.. Use comments to help you in your code!
5 of 5
Write your name on your pseudocode, unplug your micro:bit and put it and the USB cable in the correct bag and hand it in!