☰ Year plan · Communication Technology

Algorithms and flowcharts

Week 4 · Unit 1, Lesson 2 Artificial Intelligence Algorithms (1) · 3 lessons
Answers are for parents and teachers.
1
Write five ordered steps for tidying your school desk. Swap two steps and say what goes wrong.
2
Name the shape for each: Start, read num, num > 0 ?, total = a + b.
3
What does the program in the picture show?
Python
1for i in range(3):
2    print("Hi")
4
The positive-or-not program shows Not positive for 0. Why is this message better than Negative, and what would you add to show a special message for 0?
5
Is “repeat a step until the bag is full” a sequential, conditional or loop algorithm? Give a reason.