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
Which of these fuel injection systems operates with fuel injectors located only in the intake manifold near each intake
Stella [2.4K]

Answer:

C. Multipoint fuel injection

Explanation:

A fuel injection system can be defined as a system found in the engine of most automobile cars, used for the supply of a precise amount of fuel or fuel-air mixture to the cylinders in an internal combustion engine through the use of an injector.

There are different types of fuel injection system and these includes;

I. Central-point injection.

II. Throttle (single point) body injection.

III. Gasoline direct injection.

IV. Multipoint (port) fuel injection.

Multipoint fuel injection is a type of fuel injection system that operates with fuel injectors located only in the intake manifold near each intake valve and sprays fuel toward the valve. As a result, it allows for the supply of a precise amount of fuel and as such creating a better air-fuel ratio for automobile cars.

8 0
3 years ago
Pam Jones worked for 41 years at the same company and had positive performance ratings and personnel records. She needed a calcu
UNO [17]

Answer:

a) The key issues are the sue for libel and the evidence.

b) I would make a deal with her and implement a security program in the company.

Explanation:

The main issue in this case is that Pam Jones sued the company for libel, and the company remains in a position in which it has to prove that the internal investigation followed the right steps and indeed, the proves reflected that she was guilty and the fact that she got fired was correct.

The important here is exactly that the theft can be proved.

As an HR Director, I would give the correct proves in order to win the case, and if that is impossible, because of the tools and evidence, I would make a deal with her where both parts can be adequate to the problem.

She can´t be working again in the company but she can get financed according to her working years; also I would use this case as a growing opportunity by implementing new security methods that give more confidence between the company and its employees.

5 0
3 years ago
For this problem, calculate the following by hand and show the procedure for how you obtained the results. Subsequently, solve p
Gemiola [76]

Answer:wat

Explanation:

4 0
3 years ago
It's not a slot machine
scoundrel [369]
Maybe it’s a vending machine, I’m confused too
5 0
3 years ago
Read 2 more answers
A 3-in-thick slab is 10 in wide and 15 ft long. The thickness of the slab is reduced by 20% and width increases by 3% in a hot-r
xxMikexx [17]

Answer: l = 2142.8575 ft

v = 193.99 ft/min.

Explanation:

Given data:

Thickness of the slab = 3in

Length of the slab = 15ft

Width of the slab = 10in

Speed of the slab = 40ft/min

Solution:

a. After three phase

three phase = (0.2)(0.2)(0.2)(3.0)

= 0.024in.

wf = (1.03)(1.03)(1.03)(10.0)

= 10.927 in.

Using constant volume formula

= (3.0)(10.0)(15 x 15) = (0.024)(10.927)Lf

Lf = (3.0)(10.0)(15 x 15)/(0.024)(10.927)

= 6750 /0.2625

= 25714.28in = 2142.8575 ft

b.

vf = (0.2 x 0.2 x 3.0)(1.03 x 1.03 x 10.0)(40)/(0.024)(10.927)

= (0.12)(424.36)/0.2625

= 50.9232/0.2625

= 193.99 ft/min.

4 0
3 years ago
Other questions:
  • A mass of 5 kg of saturated liquid-vapor mixture of water is contained in a piston-cylinder device at 125 kPa. Initially, 2 kg o
    8·1 answer
  • Π/4 = 1 - 1/3 + 1/5 - 1/7 + 1/9 ...
    5·1 answer
  • 5) Initially, the pressure and temperature of steam inside a solid capsule is at 100-pound force per square inch absolute (psia)
    6·1 answer
  • What is the difference between the pressure head at the end of a 150m long pipe of diameter 1m coming from the bottom of a reser
    7·1 answer
  • The beam is supported by a pin at A and a roller at B which has negligible weight and a radius of 15 mm. If the coefficient of s
    7·1 answer
  • Whats the best used for cable -stayed bridge
    11·1 answer
  • Determine the number of flipflops required to build a binary counter that count from 0 to 2043
    14·1 answer
  • PLEASE HELP!! Its easy!!!
    5·2 answers
  • You guys want to talk at seven I am free then
    7·2 answers
  • 18. Bela is doing a continuity test. What's he checking?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!