A software engineer is developing control software for an autonomous delivery drone. The program must handle several distinct tasks, including path planning, battery monitoring, and collision avoidance.
Explain one benefit of implementing these tasks as separate subroutines (procedures or functions) rather than writing the entire program as a single monolithic block of code.
131 exam-style questions on AQA GCSE Computer Science Structured programming and subroutines (procedures and functions). Each one has a worked solution and a mark scheme showing where the marks go.