1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
harkovskaia [24]
3 years ago
8

define a function calc_pyramid_volume() with parameters base_length, base_width, and pyramid_height, that returns the volume of

a pyramid with a rectangular base. calc_pyramid_volume() calls the given calc_base_area() function in the calculation. relevant geometry equations: volume = base area x height x 1/3 (watch out for integer division). sample output with inputs: 4.5 2.1 3.0 volume for 4.5, 2.1, 3.0 is: 9.45
SAT
1 answer:
Aleksandr-060686 [28]3 years ago
8 0

The required program which calculates the <em>volume of a pyramid</em> written in python 3 is given below :

def calc_pyramid_volume(base_length,base_width,pyramid_height):

<em>#initialize</em><em> </em><em>a</em><em> </em><em>function</em><em> </em><em>named</em><em> </em><em>calc_pyramid_volume</em><em> </em><em>and</em><em> </em><em>takes</em><em> </em><em>in</em><em> </em><em>3</em><em> </em><em>parameters</em><em> </em>

volume = (1/3) * base_length*base_width* pyramid_height

<em>#the</em><em> </em><em>volume</em><em> </em><em>of</em><em> </em><em>pyramid</em><em> </em><em>formulae</em><em> </em><em>is</em><em> </em><em>used</em><em> </em><em>on</em><em> </em><em>the</em><em> </em><em>Parameters</em><em> </em><em>and</em><em> </em><em>the</em><em> </em><em>value</em><em> </em><em>is</em><em> </em><em>assigned</em><em> </em><em>to</em><em> </em><em>the</em><em> </em><em>variable</em><em> </em><em>named</em><em> </em><em>volume</em><em> </em>

return round(volume,2)

<em>#the</em><em> </em><em>function</em><em> </em><em>returns</em><em> </em><em>the</em><em> </em><em>volume</em><em> </em><em>value</em><em> </em><em>rounded</em><em> </em><em>to</em><em> </em><em>2</em><em> </em><em>decimal</em><em> </em><em>places</em><em>.</em><em> </em>

print(calc_pyramid_volume(4.5,2.1,3.0))

<em>#the</em><em> </em><em>sample</em><em> </em><em>run</em><em> </em>

Learn more :brainly.com/question/25136233

You might be interested in
How to make hydroxyquinoline at home with grapefruit and lemon.
uranmaximum [27]

Hydroxyquinoline CANNOT be made from grapefruit and lemon because it can only be synthesized and is not a natural compound.

With this in mind, we can see that hydroxyquinoline is usually used to salve the effects of a freshly cut cow udder as it is applied to soothe skin.

Furthermore, it can be chemically gotten when glycerol is mixed with 2-aminophenol alongside with sulphuric acid and this cannot be gotten from grapefruit and lemon.

Read more about hydroxyquinoline here:

brainly.com/question/25238494

5 0
3 years ago
How much of the Earth’s surface do deserts cover and where do they occur? What are the four major types of desert? (Site 1).
Citrus2011 [14]

Answer:

Please give an Explanation:

5 0
2 years ago
Read 2 more answers
Wpływ krzyża na rozwój wiary. Kilka zdań na ten temat
bazaltina [42]
The answer ion know what you speaking
7 0
3 years ago
Which rhetorical device does the author use to suggest the abundance of life and activity in Limberlost environment? A) simple s
stira [4]
It’s hard to answer this without more information. Which author?¿ Because each author has their own ways.
6 0
4 years ago
Read 2 more answers
Which of the following is an unintended environmental consequence of aquaculture?.
uysha [10]

Answer:

LALALLALALALALALALLAA

Explanation:

HIIII

4 0
3 years ago
Other questions:
  • Choose the best revision, if one is needed.
    10·2 answers
  • Trilobites are extinct: arthropods protozoa echinoderms mollusks
    10·2 answers
  • Who is the acting floor leader and most powerful member of the Senate? the Sergeant at Arms the Majority Party Whip the Senate M
    10·2 answers
  • The principal reason for the extremely low solubility of nacl in benzene (c6h6) is the ________.
    7·1 answer
  • calculate the frequency in hertz of electromagnetic radiation that has a wavelength of 720.0 nm. (c = 3.00 x 10⁸ m/s)
    9·1 answer
  • When you make a dns query, where does your computer first check to find an ip address to name mapping?.
    11·1 answer
  • Which detail from the text best conveys the answer in part a?.
    9·1 answer
  • What chivalric value does the Green Knight display in the excerpt? loyalty to his king the morality of fair play bravery despite
    13·2 answers
  • Words an 8 year old should know how to spell
    7·1 answer
  • Better call saul season 6 episode titles
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!