Algorithms · GCSE · OCR J277 2.1.2, AQA 8525 3.1.1, Edexcel 1CP2 1.2.1 · about 15 min
The standard symbols, and turning a flowchart into code.
[1 mark]Which flowchart symbol is used for a decision?
[1 mark]Which symbol is used for input or output?
[1 mark]In a flowchart, an arrow goes back up to an earlier decision. What does that become in code?
[1 mark]What is the box with double lines on its sides for?
[1 mark]The rising scale flowchart starts with count = 0 and loops while count < 5, adding 1 each time. How many notes does it play?
Turn this flowchart into a program. Ask for a password with the prompt Password? . While it is not bugbot, print wrong, beep, and ask again. When it is right, turn the LED green and drive forward 20 cm. The task types robot first, then bugbot.
# the two lines every program starts with: the commands, then the robot
from bugbot import *
connect()
password = input("Password? ")Plan your program here, then type it in and press Run.