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
Pleaseeee helpppppppp my grade depends on this test
mars1129 [50]

Answer: Undefined

Step-by-step explanation:

Slope=rise/run

For vertical lines, there is no "run" so the bottom of the slope fraction would be 0. Dividing anything by 0 is always undefined.

8 0
3 years ago
Read 2 more answers
10 Y What is the vertical change from Point A to Point B? 9 8 What is the horizontal change from Point A to Point B? 7 6 What is
Alina [70]

Answer:

0.5

Step-by-step explanation:

From the graph given ;

The vertical distance ; y - axis :

(y2 - y1) ; y2 = 2 ; y1 = 1

y2 - y1 = 2 - 1 = 1

The horizontal distance ; the x - axis :

(x2 - x1) ; x2 = 4 ; x1 = 2

x2 - x1 = 4 - 2 = 2

The slope ; the rate of change :

Change in y / change in x

The rate of change ;

(y2 - y1) / (x2 - x1) = 1 / 2

7 0
3 years ago
Find the unknown angle measure by solving for the given variable.<br><br>Supplementary angles​
likoan [24]

Step-by-step explanation:

Given that,

∠PSQ = 13x+7

∠QSR = 42x+8

We need to find the measure of angles.

We can use the property of linear pair. ATQ,

13x+7 + 42x+8 = 180 (Linear pair)

Taking like terms,

13x+42x = 180 - 7-8

55x = 165

x = 3

So,

∠PSQ = 13x+7 = 13(3) + 7 = 46°

∠QSR = 42x+8 = 42(3) + 8 = 134°

Hence, this is the required solution.

3 0
3 years ago
What is the answers to these questions
Vsevolod [243]

Answer:

1. equation

2.equation

3.equation

4. expression

5.expression

6.equation

7.expression

8.equation

9.expression

anything with = is an equation, without is expression.

3 0
3 years ago
Audrey uses 5/8 cup of Fruit in each smoothie she makes 6 smoothies to share with her friends how many cups of fruit does she us
olga55 [171]
To find the amount of cups of fruit used you must multiply the number of smoothies (6) by the amount of fruit need for each smoothie (5/8)
6 x 5/8 = 30/8
30/8 can be simplified to 15/4.
This is still an improper fraction, because the numerator is higher than the denominator. To fix this, you divide 15 by 4, which equals 3 3/4 cups
3 0
3 years ago
Other questions:
  • What’s the answer for that
    12·1 answer
  • Place lee's 0.365 and 3.521 on the number line below make sure to label your number line
    5·2 answers
  • 20 times 30 i don't get this ssss
    6·1 answer
  • 9. The measure of two angles are
    6·1 answer
  • TWO planes, A and start from the same place and move in different directions, making an angle of 50° between them The speed of p
    5·1 answer
  • A cone has a volume 7065in and a height of 30 in what is the radius of the cone?use 3.14 for pi
    14·1 answer
  • I got one hour to complete this please help ASAP :
    14·1 answer
  • The ratio of ronnys tern, dougs rent and ronalds rent is 4:5:8. Their total rent if $3723. What is the cost of each persons rent
    13·1 answer
  • 3. The diagonal of a rectangular field is 169 m. Ifthe ratio of the length to the width is 12:5, find the: (a) (b) dimensions; p
    9·1 answer
  • Which table represents an arithmetic sequence?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!