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
A pump is used to deliver water from a lake to an elevated storage tank. The pipe network consists of 1,800 ft (equivalent lengt
Nataly_w [17]

Answer:

h_f = 15 ft, so option A is correct

Explanation:

The formula for head loss is given by;

h_f = [10.44•L•Q^(1.85)]/(C^(1.85))•D^(4.8655))

Where;

h_f is head loss due to friction in ft

L is length of pipe in ft

Q is flow rate of water in gpm

C is hazen Williams constant

D is diameter of pipe in inches

We are given;

L = 1,800 ft

Q = 600 gpm

C = 120

D = 8 inches

So, plugging in these values into the equation, we have;

h_f = [10.44*1800*600^(1.85)]/(120^(1.85))*8^(4.8655))

h_f = 14.896 ft.

So, h_f is approximately 15 ft

7 0
3 years ago
True or false <br> 19. Closed systems rely on feedback from outside of the system to operate.
Furkat [3]

Answer: True

Explanation: Closed loop relies on feedback from PNS to make modifications in the movement, open loop allows action in the absence of feedback, 2. ... Closed loop can change the initial commands, open loop can not change the initial commands.

6 0
3 years ago
An important ethical concern for behavior analysts involves special cautions in interactions with a client in any capacity outsi
Phoenix [80]

Answer:A and B are correct. one must take care to avoid violation of ethical codes regarding conflicts of interest and dual or multiple relationships

Explanation:

A conflict of interest (COI) is a situation in which a person or organization is involved in multiple interests, financial or otherwise, and serving one interest could involve working against another. 

4 0
3 years ago
Five kg of water is contained in a piston-cylinder assembly, initially at 5 bar and 240°C. The water is slowly heated at constan
Digiron [165]

Answer:

The final temperature of water is 381.39  °C.

Explanation:

Given that

Mass of water = 5 kg

Heat transfer at constant pressure Q = 2960 KJ

Initial temperature = 240 °C

We know that heat transfer at constant pressure given as follows

Q=mC_p\Delta T

We know that for water

C_p=4.187\ \frac{KJ}{kg.K}

Lets take final temperature of water is T

So

Q=mC_p\Delta T

2960=5\times 4.187(T-240)

T=381.39  °C

So the final temperature of water is 381.39  °C.

7 0
3 years ago
What's the monomer? Show the structure.
ivolga24 [154]

In order to understand a monomer let´s first see the structure of a polymer. As an example, in the first figure polyethylene (or polyethene) is shown. This polymer, like every other one, is composed of many repeated subunits, these subunits are called monomer. In the second figure, polyethylene's monomer is shown.  

7 0
4 years ago
Other questions:
  • Water at 20oC, with a free-stream velocity of 1.5 m/s, flows over a circular pipe with diameter of 2.0 cm and surface temperatur
    13·1 answer
  • Thermal energy storage systems commonly involve a packed bed of solid spheres, through which a hot gas flows if the system is be
    13·1 answer
  • R 134a enters a air to fluid heat exchanger at 700 kPa and 50 oC. Air is circulated into the heat exchanger to cool the R134a to
    6·1 answer
  • What are four engineering degrees that can help lead you to becoming an aerospace engineer
    6·1 answer
  • A well penetrates an unconfined aquifer. Prior to pumping, the water level (head) is 25 meters. After a long period of pumping a
    14·1 answer
  • For the system in problem 4, suppose a main memory access requires 30ns, the page fault rate is .01%, it costs 12ms to access a
    14·1 answer
  • An automobile engine consumes fuel at a rate of 22 L/h and delivers 85 kW of power to the wheels. If the fuel has a heating valu
    8·2 answers
  • What time ----–- the train arrve? ​​
    12·1 answer
  • Why is “land-use planning” an appropriate name for urban planning?
    8·2 answers
  • Is reinforcement needed in a retaining wall
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!