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.
Answer: Pi= 4 - 4/3 + 4/5 - 4/7 + 4/9 ...
Explanation:
Is the same as the example,
If Π/4 = 1 - 1/3 + 1/5 - 1/7 + 1/9 ...
Then
(Π/4 )*4= 4*(1 - 1/3 + 1/5 - 1/7 + 1/9 ...)
Π =4 - 4/3 + 4/5 - 4/7 + 4/9 ...
The way to write this is
Sum(from n=0 to n=inf) of (-1)^n 4/(2n+1)
(photo)
Answer:
Electricity, as you probably already know, is the flow of electrons through a conductive path like a wire. This path is called a circuit. ... The chemical reactions in the battery causes a build up of electrons at the anode. This results in an electrical difference between the anode and the cathode
“Thinking about pleasant things to pass the time” would not promote safety in the shop because it would be taking the focus away from important tasks, which in turn decreases safety.
Answer:
System analysis can be defined as a deep analysis of a part of the structure of a module that has been designed before. System design means to make any module or a part of the structure from scratch and build it completely without estimation.
Explanation: