Question: Java public class Triangle extends Simple_Polygon { public Triangle(Point a, Point b, Point c) { Assign values into array in order using superclass constructor }

Java

public class Triangle extends Simple_Polygon { public Triangle(Point a, Point b, Point c) { Assign values into array in order using superclass constructor }

create getperimeter function and invoke it

{ should returm sum of lines of vertices A-B, B-C, C-A } create getarea function

{ to return area of 3 vertices.

}

More Info Below comments: Legend: Vertex_1 = (x1, y1), Vertex_2 = (x2, y2), Vertex_3 = (x3, y3) Formula = Absolute value of: (x1*(y2-y3) + x2*(y3-y1) + x3*(y1-y2)) / 2

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!