public Trapezoidal{
public double top;
public double bottom;
public double high;
public double area;
public Trapezoidal(double top,double bottom,double high){
this.top=top;
this.bottom=bottom;
this.high=high;
}
public double getArea(){
return (this.top + this.botom)*this.high/2;
}
}