Paper 2 structured question: P rogramming concepts
Description
Functions and Procedures
In a programming language, a function named 'calculateArea' takes two parameters: 'length' and 'width'. It returns the area calculated as length multiplied by width. A procedure named 'displayMessage' takes one parameter 'message' and prints it to the console.
- a[1]
State the difference between a function and a procedure.
Aim for approximately 1 distinct marking point.
