For this assignment we will practice with pass-by-reference. Wewill imagine we are working for a company that manufactures cubesof different materials and sells them to end users. This companywants to automate its quote system, so it is asking you towrite a function to calculate the total cost of manufacturing andshipping a cube. The function totalCostreturns the total cost, and takes the cube side length, the cubematerial density, and the material cost per kg as parameters, aswell as reference parameters to extract shipping and manufactureseparately.
The shipping cost is $100/cubic metre of volume of the cube plus$10/kg of mass.
The manufacturing cost is
PayPal Gateway not configured
PayPal Gateway not configured