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
Hector can buy a banana and a tomato for 56 cents. He can buy a peach and a banana for 51 cents or he can buy a tomato and a pea
MakcuM [25]

Answer:

Step-by-step explanation:

Let us represent:

Banana = b

Tomato = t

Peach = p

Hector can buy a banana and a tomato for 56 cents.

b + t = 56

b = 56 - t

He can buy a peach and a banana for 51 cents

p + b = 51

or

He can buy a tomato and a peach for 69 cents.

t + p = 69

p = 69 - t

p + b = 51

69 - t + b = 51

How much does a banana cost?

4 0
3 years ago
GIVING BRAINLIEST!!!!!
blagie [28]
Just do the inverse of the translation

so by using the translation
(x-5, y+8), triangle A'B'C' will become triangle ABC

now just plug in the point

C' (12,-11) ---> C (7,-3)
3 0
3 years ago
Not right answer... Help
Igoryamba

Answer: -6

Step-by-step explanation:

3 0
3 years ago
Maria bought 14 oranges. Each orange weighed 0.44 pound.
Ivan

Answer:6.16 pounds

Step-by-step explanation:

14x0.44

5 0
3 years ago
Read 2 more answers
Is Figure B a scale copy of Figure A?
Firdavs [7]
No, because 9/3=3 but 7.3/3=2.433..... And not 2.2
4 0
2 years ago
Other questions:
  • How to solve this thing
    12·1 answer
  • Can someone please help me
    10·1 answer
  • Rewrite 7 − 8 using the additive inverse and display the new expression on a number line
    13·1 answer
  • Latoya made $306 for 17 hours of work.
    11·2 answers
  • 3(x+y)+8m x equals 3 y equals 5 m equals -2
    9·1 answer
  • 5,467.219 rounded to the nearest whole??
    15·2 answers
  • PLEEEEEEEASE HELP
    11·1 answer
  • Can someone help me?
    8·2 answers
  • 7RK<br> QuantomMaster<br> eeeeeeeeeeeeeeeeeeeee
    6·2 answers
  • PLEASE HELP ME THANK YOU
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!