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
An object is supported by a crane through a steel cable of 0.02m diameter. If the natural swinging of the equivalent pendulum is
devlian [24]

Answer:

22.90 × 10⁸ kg

Explanation:

Given:

Diameter, d = 0.02 m

ωₙ = 0.95 rad/sec

Time period, T = 0.35 sec

Now, we know

T= 2\pi\sqrt{\frac{L}{g}}

where, L is the length of the steel cable

g is the acceleration due to gravity

0.35= 2\pi\sqrt{\frac{L}{9.81}}

or

L = 0.0304 m

Now,

The stiffness, K is given as:

K = \frac{\textup{AE}}{\textup{L}}

Where, A is the area

E is the elastic modulus of the steel = 2 × 10¹¹ N/m²

or

K = \frac{\frac{\pi}{4}d^2\times2\times10^11}{0.0304}

or

K = 20.66 × 10⁸ N

Also,

Natural frequency, ωₙ = \sqrt{\frac{K}{m}}

or

mass, m = \sqrt{\frac{K}{\omega_n^2}}

or

mass, m = \sqrt{\frac{20.66\times10^8}{0.95^2}}

mass, m = 22.90 × 10⁸ kg

4 0
3 years ago
I need answer to this question
blagie [28]

Answer:

1. Graph C

2. Friction

Explanation:

1. The line on all of the graphs shown represents velocity. The formula for velocity is v=\frac{d}{t} where d is distance and t is time. Focusing on the first lap, the starting point on the graph should be the origin and the "ending" point should be (20, 3). These requirements eliminate graph A as an answer because its "end" is not (20, 3). During the break, the student does not move, so the slope of the line should be completely horizontal. The break lasted for 5 minutes, so the correct graph should have a horizontal line between the points (20, 3) and (25, 3). This requirement eliminates graph B and D because their break is either not long enough (B) or too long (D).

2. Friction slows down the movement of objects. When an object is rough, it produces more friction which causes the object to be slowed more. When an object is smooth, friction slows it less than it would for a rough object.

6 0
3 years ago
You have a 12-inch PVC water main that is 850 feet long flowing at 5.6 cfs. Point A is at an elevation of 750 ft. Point B is at
alex41 [277]

Known :

D = 12 in = 1 ft

L = 850 ft

Q = 5.6 cfs

hA = 750 ft

hB = 765 ft

PA = 85 psi = 12240 lb/ft²

Solution :

A = πD² / 4 = π(1²) / 4

A = 0.785 ft²

<u>Velocity of water :</u>

U = Q / A = 5.6 / 0.785

U = 7.134 ft/s

<u>Friction loss due to pipe length :</u>

Re = UD / v = (7.134)(1) / (0.511 × 10^(-5))

Re = 1.4 × 10⁶

(From Moody Chart, We Get f = 0.015)

hf = f(L / d)(U² / 2g) = 0.015(850 / 1)((7.134²) / 2(32.2))

hf = 10 ft

PA + γhA = PB + γhB + γhf

PB = PA + γ(hA - hB - hf)

PB = 12240 + (62.4)(750 - 765 - 10)

PB = 10680 lb/ft²

PB = 74.167 psi

8 0
3 years ago
A pump delivers water at 20°C between a reservoir and a water tank 24 m higher. The suction side consists of a strainer (ks = 2.
aleksandrvk [35]

Answer:

-10.83m

Explanation:

Please see the attachment

8 0
4 years ago
The initial temperature of a steel rod is 900oC and it is dropped into rapidly agitated oil at 315oC to quench it to martensite.
vaieri [72.5K]

Answer:

227.5Secs

Explanation:

How long it will take To get to temperature 320 degrees and it's thermal time is 227.5 Seconds and 47.8 respectively. Kindly check attached file for how this is gotten.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Circular fins are employed around the cylinder of a lawn mower engine to dissipate heat. The fins are made of aluminum are 0.3-m
    10·1 answer
  • Water flows over a spillway and is directed upward as a free jet at an angle of 30o y with the horizontal at the exit from the s
    14·2 answers
  • When a thin glass tube is put into water, the water rises 1.4 cm. When the same tube is put into hexane, the hexane rises only 0
    10·1 answer
  • Indicate whether the following statements are true or false for an isothermal process: (A) Q=T(∆S). (B) ∆U=0.(C) The entropy cha
    5·1 answer
  • At the inlet to the combustor of a supersonic combustion ramjet (or scramjet), the flow Mach number is supersonic. For a fuel-ai
    12·1 answer
  • A cylindrical metal specimen having an original diameter of 11.34 mm and gauge length of 53.3 mm is pulled in tension until frac
    7·1 answer
  • Engineer Smith, who is licensed in several jurisdictions, recently had his license acted upon by a licensing authority in one of
    8·1 answer
  • The speed of a vehicle is reduced with a constant acceleration from 72km/h to 18
    12·1 answer
  • Convenience items like liquid egg are a lot more expensive?<br> True<br> Or False
    7·2 answers
  • Schrodinger equation is a ........... Equation
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!