A systems engineer is writing the control software for an autonomous deep-sea research submarine. The software contains several recurring calculations, such as pressure-to-depth conversions and buoyancy adjustments. The engineer decides to implement these tasks using modular subroutines (procedures and functions) rather than a single continuous block of monolithic code.
Identify three distinct advantages of structuring the submarine's control software using subroutines.
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.