AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Plan and test a smart idea

Week 9 · Unit 7.2: Decomposing problems · 3 lessons
Answers are for parents and teachers.
1
Write the data type (integer or string) of each value: 9, "9", "light", 2024, "Hi!".
ValueData type
9?
"9"?
"light"?
2024?
"Hi!"?
2
Break down this problem into the five questions of a plan: a seed-tray sign shows a tick if the temperature is warm enough for seeds (15 degrees or more) and a cross if not.
3
Draw the flowchart for the plan above and use a variable called tray_temp.
4
Write a test plan with five tests for your flowchart. Work out the expected outcomes first.
5
The program for the seed-tray sign uses tray_temp > 15. Which of your five tests fails, and what is the correction?