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)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!