A mathematician is writing a computer program to simulate the trajectories of multiple projectiles by solving differential equations numerically. They choose to implement the numerical solver as a subroutine (such as a function or procedure) rather than writing a single continuous block of code.
Explain one advantage of using a subroutine in this programming scenario.
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.