THIS IS C PROGRAMMING

I NEED TO CREATE A METHOD!

Create a method areaOfaTrapeziod when given a, b, and h (all doubles), will return the area (double) of a trapezoid. Use the equation pictured below.

THANKS IN ADVANCE :)

a typical double method looks like this:

double areaOfTrapezoid(double A, double B, double H){
double area;
area=........ (according to your instructions.
return area;
}