Hi, you haven't provided the programing language in which you need the code, I'll just explain how to do it using Python, and you can apply a similar method for any programming language.
Answer:
1. def pyramid_volume(base_length, base_width, pyramid_height):
2. volume = base_length*base_width*pyramid_height/3
3. return(volume)
Explanation step by step:
- In the first line of code, we define the function pyramid_volume and it's input parameters
- In the second line, we perform operations with the input values to get the volume of the pyramid with a rectangular base, the formula is V = l*w*h/3
- In the last line of code, we return the volume
In the image below you can see the result of calling the function with input 4.5, 2.1, 3.0.
4) Ohms law thats the answer
Answer:
See explaination
Explanation:
Let's define tuple as an immutable list of Python objects which means it can not be changed in any way once it has been created.
Take a look at the attached file for a further detailed and step by step solution of the given problem.
Answer: you can watch a video on how to solve this question on you tube