1 of 5

Lesson 7 - Pseudocode

Planning our programme

2 of 5

Lesson Objectives

  1. Design our programme for our wearable tech bag
  2. Make use of learning from the previous four lessons
  3. 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:

REPEATOUTPUT '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' THENOUTPUT 'Of course it is!'� ELSEOUTPUT '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!