Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started