Question: Write a function farmhouse() that takes the following arguments, in this order: 1. W: the width of a farmhouse, as illustrated in in the figure

 Write a function farmhouse() that takes the following arguments, in this

Write a function farmhouse() that takes the following arguments, in this order: 1. W: the width of a farmhouse, as illustrated in in the figure below 2. L: the length of the farmhouse 3. H: the height of the lowest point of the roof 4. P: the height of the peak of the roof The function computes and returns the volume of space occupied by a farmhouse of the provided dimensions. You may assume P > H and that all five values are positive. Do not assume that H- P/2. Use floating-point division only Examples: Return Value Function Call farmhouse (6.25, 17, 8, 9.7)940.3125 farmhouse (19, 28, 10, 12) farmhouse (10, 40.5, 11, 16) 5467.5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!