Question: Create a solution that accepts any three integer inputs representing the base ( b 1 , b 2 ) and height ( h ) measurements

Create a solution that accepts any three integer inputs representing the base (b1,b2) and height (h) measurements of a trapezoid in meters. Output the exact area of the trapezoid in square meters as a float value. The exact area of a trapezoid can be calculated by finding the average of the two base measurements, then multiplying by the height measurement.
Trapezoid Area Formula:
A=[b1+b22]***h
The solution output should be in the format
Trapezoid area: area_value square meters
then the expected output is
Trapezoid area: 17.5 square meters
Alternatively, if the input is
3
5
7
Then the expected output is
Trapezoid area: 28.0 square meters
Create a solution that accepts any three integer

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 Programming Questions!