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
solmaris [256]
3 years ago
10

Define a function pyramid_volume with parameters base_length, base_width, and pyramid_height, that returns the volume of a pyram

id with a rectangular base. Sample output with inputs: 4.5 2.1 3.0 Volume for 4.5, 2.1, 3.0 is: 9.45 Relevant geometry equations: Volume

Engineering
1 answer:
Maslowich3 years ago
5 0

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:

  1. In the first line of code, we define the function pyramid_volume and it's input parameters
  2. 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
  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.

You might be interested in
Direction: List down or enumerate the type of outlets you want to install on your dream house. Also indicate the quantity (in pi
Lorico [155]

Answer:

Apartment outlet 4pcs

Explanation:

6 0
3 years ago
A well is located in a 20.1-m thick confined aquifer with a conductivity of 14.9 m/day and a storativity of 0.0051. If the well
ahrayia [7]

Answer:

S = 5.7209 M

Explanation:

Given data:

B = 20.1 m

conductivity ( K ) = 14.9 m/day

Storativity  ( s ) = 0.0051

1 gpm = 5.451 m^3/day

calculate the Transmissibility ( T ) = K * B

                                                       = 14.9 * 20.1 = 299.5  m^2/day

Note :

t = 1

U = ( r^2* S ) / (4*T*<em> t </em>)

  = ( 7^2 * 0.0051 ) / ( 4 * 299.5 * 1 ) = 2.0859 * 10^-4

Applying the thesis method

W(u) = -0.5772 - In(U)

       = 7.9

next we calculate the pumping rate from well ( Q ) in m^3/day

= 500 * 5.451 m^3 /day

= 2725.5 m^3 /day

Finally calculate the drawdown at a distance of 7.0 m form the well after 1 day of pumping

S = \frac{Q}{4\pi T} * W (u)

 where : Q = 2725.5

               T = 299.5

               W(u)  = 7.9

substitute the given values into equation above

S = 5.7209 M

4 0
3 years ago
Which of these is the BEST description of
strojnjashka [21]

Answer:

i would say C but i may be wrong have a great day

Explanation:

3 0
3 years ago
Refrigerant 134a enters the evaporator of a refrigeration system operating at steady state at -16oC and a quality of 20% at a ve
Dmitry [639]

Answer:

mass flow rate = 0.0534 kg/sec

velocity at exit = 29.34 m/sec

Explanation:

From the information given:

Inlet:

Temperature T_1 = -16^0\ C

Quality x_1 = 0.2

Outlet:

Temperature T_2 = -16^0 C

Quality  x_2 = 1

The following data were obtained at saturation properties of R134a at the temperature of -16° C

v_f= 0.7428 \times 10^{-3} \ m^3/kg \\ \\  v_g = 0.1247 \ m^3 /kg

v_1 = v_f + x_1 ( vg - ( v_f)) \\ \\ v_1 = 0.7428 \times 10^{-3} + 0.2 (0.1247 -(0.7428 \times 10^{-3})) \\ \\  v_1 = 0.0255 \ m^3/kg \\ \\ \\  v_2 = v_g = 0.1247 \ m^3/kg

m = \rho_1A_1v_1 = \rho_2A_2v_2 \\ \\  m = \dfrac{1}{0.0255} \times \dfrac{\pi}{4}\times (1.7 \times 10^{-2})^2\times 6  \\ \\ \mathbf{m = 0.0534 \ kg/sec}

\rho_1A_1v_1 = \rho_2A_2v_2 \\ \\ A_1 =A_2  \\ \\  \rho_1v_1 = \rho_2v_2   \\ \\ \implies \dfrac{1}{0.0255} \times6 = \dfrac{1}{0.1247}\times (v_2)\\ \\ \\\mathbf{\\ v_2 = 29.34 \ m/sec}

3 0
3 years ago
Yo can someone find me an e-boy?
Vera_Pavlovna [14]
I got a friend how old are you and are you ok dating a bi guy
4 0
3 years ago
Other questions:
  • What are the three elementary parts of a vibrating system?
    14·1 answer
  • List two skills that are useful when working in teams.
    11·2 answers
  • Chemical milling is used in an aircraft plant to create pockets in wing sections made of an aluminum alloy. The starting thickne
    5·1 answer
  • In the construction of a large reactor pressure vessel, a new steel alloy with a plane strain fracture toughness of 55 MPa-m1/2
    7·1 answer
  • If the same type of thermoplastic polymer is being tensile tested and the strain rate is increased, it will: g
    14·1 answer
  • Refrigerant-134a enters the expansion valve of a refrigeration system at 120 psia as a saturated liquid and leaves at 20 psia. D
    15·1 answer
  • Welding and cutting done in confined spaces must
    5·2 answers
  • Determine the output logic-levels(boolean-levels) for XNOR if the two-inputs are inverted?​
    8·1 answer
  • All of these are true about steel EXCEPT that:
    7·1 answer
  • If an object has the same number of positive and negative charges, its electrical charge is
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!