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:
"Macro Instruction"
Explanation:
A macro definition is a rule or pattern that specifies how a certain input sequence should be mapped to a replacement output sequence according to a defined procedure. The mapping process that instantiates a macro use into a specific sequence is known as macro expansion.
It is a series of commands and actions that can be stored and run whenever you need to perform the task. You can record or build a macro and then run it to automatically repeat that series of steps or actions.
Answer:
int()
Explanation:
float() is using decimals, so that can't be it, like float(input( "how much does this cost?"))
print() is used to print something, not a user asking, like print("hello")
string() means like a whole, like string( I am good)
By elimination, int() is correct.
Hope this helps!
Answer:
COMMON ENGINEERING DOCUMENTS
Inspection or trip reports.
Research, laboratory, and field reports.
Specifications.
Proposals.
Progress reports.
ect...
Explanation: