Define the following functions: find_base_area() has two parameters as a prism's base length and base width. The function returns the area of the prism's base. The area of the base is calculated by: find_vol() has three parameters as a prism's base length, base width, and height. The function returns the prism's volume, and uses the find_base_area() function to calculate the prism's base area. The volume is calculated by:   Ex: If the input is: 4.0 2.0 3.0 then the output is: Prism base length: 4.0 Prism base width: 2.0 Prism height: 3.0 Base area: 8.0 Volume: 24.0

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.1: Assignment Operations
Problem 7E: (Civil eng.) Write an assignment statement to calculate the linear expansion in a steel beam as a...
icon
Related questions
Question

Define the following functions:

  • find_base_area() has two parameters as a prism's base length and base width. The function returns the area of the prism's base. The area of the base is calculated by:

  • find_vol() has three parameters as a prism's base length, base width, and height. The function returns the prism's volume, and uses the find_base_area() function to calculate the prism's base area. The volume is calculated by:

 

Ex: If the input is:

4.0 2.0 3.0

then the output is:

Prism base length: 4.0 Prism base width: 2.0 Prism height: 3.0 Base area: 8.0 Volume: 24.0

 
 
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr