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
arlik [135]
3 years ago
8

Define a function pyramid volume with double parameters baselength, basewidth, and pyramid height, that returns as a double the

volume of a pyramid with a rectangular base. relevant geometry equations: volume = base area x height x 1/3 base area = base length x base width. (watch out for integer division).
Mathematics
1 answer:
nalin [4]3 years ago
5 0
<span>Declaring the volume function double PyramidVolume(double baseLength, double baseWidth, double pyramidHeight){ double baseArea = baseLength * baseWidth; double vol = ((baseArea * pyramidHeight) * 1/3); return vol; } int main() { cout << "Volume for 1.0, 1.0, 1.0 is: " << PyramidVolume(1.0, 1.0, 1.0) << endl; return 0; } Defining the function, include <iostream> double PyramidVolume(double, double, double); int main() { std::cout << "Volume for 1.0, 1.0, 1.0 is: " << PyramidVolume(1.0, 1.0, 1.0) << std::endl; return 0; } double PyramidVolume(double length, double width, double height) { return length * width * height / 3; }</span>
You might be interested in
Solve the inequality. 1/3b + 1 &lt; -6​
olga_2 [115]

Answer:

b<-21

Step-by-step explanation:

1/3b+1<-6

1/3b<-7

*3     *3

b<-21

5 0
3 years ago
Read 2 more answers
3 1/2 × 1 1/2 × 2 =​
andrey2020 [161]

Answer:

38.5

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
A student wrote and simplified an expression for the perimeter of the rectangle. (Using the picture provided.)
Nookie1986 [14]

Answer:

It’s 10n+12

They put the 2 n’s as an exponent

Step-by-step explanation:

3 0
3 years ago
Start at (12, 3). Move 2 units right and 7 units up. Where do you end up?
Korolek [52]

Answer: (10, 10)

Step-by-step explanation: well if you say start at (12, 3) move 7 units up then 3 units right then it would make it easier to figure it out cus as you can see start at 3 and go up 7 it would stop at 10 then if you go over 2 from 12 it would stop at 10

6 0
3 years ago
One number is six times as large as another. The sum of their reciprocal is 7. What are the numbers
RideAnS [48]
X=6y

sum of their reciprocals
(1/x)+(1/y)=7
x=6y
1/6y+1/y=7
1/6y+6/6y=7
7/6y=7
times both sides by 6y
7=42y
divide both sides by 42
1/6=y

x=6y
x=6(1/6)
x=6/6
x=1

the numbers are 1 and 1/6
5 0
3 years ago
Other questions:
  • What is the top price of $45.09 item when 7% sales tax is added
    8·1 answer
  • So for line of best fit, I got y=1.72x+73.35
    6·1 answer
  • Find sin x if cos x= 2/3 and x is in quadrant 4
    11·2 answers
  • A fielld goal kicker makes 4 of 5 extra points in a game. Whay percent of the extra points were made?
    10·2 answers
  • Make g the subject of the formula <br><img src="https://tex.z-dn.net/?f=w%20%3D%207%20-%20%20%5Csqrt%7Bg%7D%20" id="TexFormula1"
    13·2 answers
  • Find x<br><br> A. 4√6<br> B. 4√6/3<br> C. 16√6/3<br> D. 32√3/3
    12·1 answer
  • Please help and thank you
    6·1 answer
  • What is the degree of rotation for the following figure
    12·1 answer
  • 15.What is the area of the segment?
    8·1 answer
  • What is 3.75 multiplied 2.6
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!