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
Why shouldn´t people be afraid to love themselves at all
Vlad1618 [11]

Answer:1. Real love makes us feel vulnerable. A new relationship is uncharted territory, and most of us have natural fears of the unknown. Letting ourselves fall in love means taking a real risk. We are placing a great amount of trust in another person, allowing them to affect us, which makes us feel exposed and vulnerable. Our core defenses are challenged. Any habits we’ve long had that allow us to feel self-focused or self-contained start to fall by the wayside. We tend to believe that the more we care, the more we can get hurt.

2. New love stirs up past hurts. When we enter into a relationship, we are rarely fully aware of how we’ve been impacted by our history. The ways we were hurt in previous relationships, starting from our childhood, have a strong influence on how we perceive the people we get close to as well as how we act in our romantic relationships. Old, negative dynamics may make us wary of opening ourselves up to someone new. We may steer away from intimacy, because it stirs up old feelings of hurt, loss, anger or rejection. As Dr. Pat Love said in an interview with PsychAlive, “when you long for something, like love, it becomes associated with pain,” the pain you felt at not having it in the past.

3. Love challenges an old identity. Many of us struggle with underlying feelings of being unlovable. We have trouble feeling our own value and believing anyone could really care for us. We all have a “critical inner voice,” which acts like a cruel coach inside our heads that tells us we are worthless or undeserving of happiness. This coach is shaped from painful childhood experiences and critical attitudes we were exposed to early in life as well as feelings our parents had about themselves.

While these attitudes can be hurtful, over time, they have become engrained in us. As adults, we may fail to see them as an enemy, instead accepting their destructive point of view as our own. These critical thoughts or “inner voices” are often harmful and unpleasant, but they’re also comfortable in their familiarity. When another person sees us differently from our voices, loving and appreciating us, we may actually start to feel uncomfortable and defensive, as it challenges these long-held points of identification.

4. With real joy comes real pain. Any time we fully experience true joy or feel the preciousness of life on an emotional level, we can expect to feel a great amount of sadness. Many of us shy away from the things that would make us happiest, because they also make us feel pain. The opposite is also true. We cannot selectively numb ourselves to sadness without numbing ourselves to joy. When it comes to falling in love, we may be hesitant to go “all in,” for fear of the sadness it would stir up in us.

Explanation:

4 0
3 years ago
Read 2 more answers
A circle has a radius of 5.4 m. what is the exact length of an arc formed by a central angle measuring 60°? enter your answer in
Solnce55 [7]

Assuming the radius is 5.4m. The exact length of an arc formed by a central angle measuring 60° is 1.8π or 5.65.

<h3>Length of an arc</h3>

Arc length of the circle=(theta)/360×pi×diameter

Diameter=2×radius

Where:

radius=5.4

Diameter=2×5.4=10.8

theta=60°

Arc length:

Arc length=60°/360°×π×10.8

Arc length=5.6548667765 or 1.8π

Inconclusion the exact length of an arc formed by a central angle measuring 60° is 1.8π or 5.65.

Learn more about length of an arc here:brainly.com/question/3955907

5 0
2 years ago
Read 2 more answers
To what extent were the goals of reconstruction regarding african-americans achieved by 1900?.
Gemiola [76]

Answer: The goals were

ensure citizenship and civil liberties , Provide economic , and Provide education opportunities for former slaves

Explanation:civil right act in 1866

7 0
3 years ago
What kind of boundary is shown in the image below?
vladimir2022 [97]

Answer:

where is the image

Explanation:

how can we know the answer

5 0
3 years ago
Read 2 more answers
All of the following are implied by Viagra ads EXCEPT: quizlet
alina1380 [7]

All of the aforementioned are implied by Viagra advertisements except that: women should be more se-xually assertive.

<h3>What is an advertisement?</h3>

An advertisement can be defined as consumer promotions programs that are designed and developed with the sole intention of making the various goods (products) or services which are being offered by a business firm to become known, popular and familiar to all of its customers and potential customers.

In this scenario, we can infer and logically that Viagra advertisements which depicts it as being an aphrodisiac and se-xual enhancer doesn't imply that women should be more se-xually assertive over their male counterparts (partners).

Read more on advertisements here: brainly.com/question/10196860

#SPJ1

8 0
2 years ago
Other questions:
  • What is the Biggest Number in world
    6·2 answers
  • Why are river bed rocks smooth
    10·1 answer
  • Why drinking large volumes of plain water after exercising may affect the salt balance in th body?
    15·1 answer
  • Why does benvolio want to go home?
    10·2 answers
  • Can someone write me an essay on microscope ​
    9·2 answers
  • The ORA is a:
    12·2 answers
  • What property is illustrated by 3x(x + 2y) = 3x^2 + 6xy
    5·1 answer
  • Consider the two male oryx that are shown below. Mc005-1. Jpg Which of Charles Darwin’s main points is depicted in the image? Or
    11·1 answer
  • What is the meaning of the underlined word? no, no es lo mismo. Plan symbol place same.
    11·1 answer
  • In a closed system a reversible chemical reaction will reach a state of dynamic chemical when the rate of the forward reaction i
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!