An oceanographic simulation suite utilizes a subprogram named determineSalinity to calculate and send back the salt concentration of a water sample based on its conductivity and temperature.
Explain why determineSalinity is classified as a function rather than a procedure.
29 exam-style questions on Edexcel GCSE Computer Science Subprograms, covering Built-in and user-devised subprograms, Functions versus procedures, and Global and local variables. Each one has a worked solution and a mark scheme showing where the marks go.