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

Divide and conquer

Week 13 · 1.7 Software development · 3 lessons
Answers are for parents and teachers.
1
Decompose “plan a birthday party” into four sub-problems.
2
Which of these is a single step, and which is a sub-problem? (a) design the school garden; (b) put one seed in one hole.
3
Give two reasons why programmers use sub-routines in a big program.
4
Trace the program. What is printed?
Python
1def add_fee(price):
2    return price + 2
3
4print(add_fee(10) + add_fee(1))
5
A pupil writes all of a program, tests it, and finds it does not work. Explain how iterative development would have helped.