Question: a) Differentiate between actual parameter and formal parameter. (2 marks) b) Write the function definition for each of the following problems: i) function cuboidVolume ()

a) Differentiate between actual parameter and formal parameter. (2 marks) b) Write the function definition for each of the following problems: i) function cuboidVolume () that receives the length, width and height of a cuboid through its parameter. This function then calculates and return the volume using the formula: volume = length x width height (3 marks) ii) function sphereVolume () that receives the radius of a sphere through its parameter. This function then calculates and return the volume using the formula: volume=34r3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
