import java.awt.Point; public class Triangle { private Point myP1; private Point myP2; private Point myP3; // Default Constructor // Initialize three Points to default Point objects public Triangle() { myP1 = new Point(); myP2 = new Point(); myP3 = new Point(); } // Constructor: Initialize myP1, myP2, and myP3 to the three points of // the triangle // Parameters: // Three points of the triangle public Triangle(Point p1, Point p2, Point p3) { myP1 = p1; myP2 = p2; myP3 = p3; } // Calculates the perimeter of this triangle // Parameters: none // Return: double value of perimeter public double getPerimeter() { double x1 = myP1.getX(); double y1 = myP1.getY(); double x2 = myP2.getX(); double y2 = myP2.getY(); double x3 = myP3.getX(); double y3 = myP3.getY(); double side1 = ; double side2 = ; double side3 = ; double perimeter = return perimeter; } // Calculates the area of this triangle // Parameters: none // Return: double value of area public double getArea() { return 0; // TO DO (return 0 is a dummy return statement) } }