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
List all possible fracture mechanisms under which the unidirectional composites fail. Briefly explain and describe the related m
professor190 [17]

Answer:

Ususushehehehhuuiiïbbb

Explanation:

Yyshehshehshshsheyysysueueue

7 0
2 years ago
Doubling the diameter of a solid, cylindrical wire doubles its strength in tension.
julsineya [31]

Answer:

True ❤️

-Solid by solid can make Cylindrical wire doubles Strengths in tension

4 0
3 years ago
In tropical climates, the water near the surface of the ocean remains warm throughout the year as a result of solar energy absor
mote1985 [20]

Answer:

7.07%

Explanation:

Thermal efficiency can be by definition seen as the ratio of the heat utilized by a heat engine to the total heat units in the fuel consumed.

We will determine the thermal efficiency of the given problem at the attached file.

7 0
3 years ago
Opinion: Choose a side and defend it in four to five sentences. Given the choice between a vehicle that runs on gasoline or one
vaieri [72.5K]

Answer:

my opinion would be electric

Explanation:

because when it comes down to the bare minimum the best choice for the world in the long run would be electric because it puts a big dent back for global warming and the burning of gasses so the more people who drive electric cars are the people who are trying to save the world a little at a time by preventing the burning of gasses. hope this helps :)

6 0
2 years ago
Read 2 more answers
List all information for each order item. Include an item total, which can be calculated by multiplying the Quantity and Paid ea
Zigmanuir [339]

Answer:

#include<iostream>

Using namespace std;

int main()

{

int n, qty;

double price, amount;

cout<<"Number of items ";

cin>>n;

cout<<"ITEM<<"\t"<<"QUANTITY"<<"\t"<<"PRICE"<<"\t"<<"ITEM TOTAL";

for(int i= 1; I<= n; i++)

{

cin>>qty;

cin>>price;

amount = qty * price;

cout<<i<<"\t "<<qty<<"\t"<<price<<"\t"<<amount;

}

}

Explanation

The above program is written in C++ programming language

5 variables are declared and used in the program

n is declared as an integer to represent the total number of items

qty is declared as integer to represent the total quantity of each item

price is declared as double to represent the amount of each individual item

amount is declared as double to represent the total amount of an item; it is gotten by qty * price

i is declared as integer to iterated between each items

The amount of each item is calculated within the iteration and also printed immediately

3 0
3 years ago
Other questions:
  • Line.
    9·1 answer
  • Name 3 ways in which robots have improved since the Ebola outbreak.
    11·1 answer
  • The level of water in a dam is 6 m. The rectangular gate ABC is pinned at point B so it can rotate freely about this point. When
    12·1 answer
  • I WILL GIVE BRAINLIEST IF ANSWER FAST What is the measurement of this dial caliper?
    5·2 answers
  • A truck is hauling a 300-kg log out of a ditch using a winch attached to the back of the truck. Knowing the winch applies a cons
    14·1 answer
  • Nitrogen enters a steady-flow heat exchanger at 150 kPa, 10°C, and 100 m/s, and it receives heat as it flows through it. Nitroge
    15·1 answer
  • Urgent please help me...
    8·1 answer
  • If Ori gives a friend three reasons for preferring soccer to basketball, that is an algorithm.
    14·2 answers
  • What learning is required to become a mechanical engineer?
    14·1 answer
  • A teenage brain is already fully developed to enable us to manage risks effectively.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!