Question: Problem 3-This function will compute the wetted (surface) area and the volume of a square pyramid. Use the following instructions to help create your function:

Problem 3-This function will compute the wetted (surface) area and the volume of a square pyramid. Use the following instructions to help create your function: Open the editor window, and use the information discussed in class as a template to write your function. Name your function as described at the beginning of the lab instructions. Include a comment block describing the function. .Pass input values for side length and height. Calculate the total surface area and volume for the pyramid. You might need to look up equations for the total surface area and volume of a square pyramid. Return both the surface area and volume. Test your function in the command window to make sure it works as required. Include comments to document your function and your results. Include commented results at the conclusion of your function m-file for the case where L = 3m and h = 5m. Express your answer in both SI and customary U.S. units. Your comments should include the results and units
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
