Question: Convert the following solution to one that uses an additional method to calculate a triangles' perimeter by completing the four TODOs in the starter code.

Convert the following solution to one that uses an additional method to calculate a triangles' perimeter by completing the four TODOs in the starter code. Keep the file name as Triangle java.
Define a new method called caleTrianglePerimeter, which takes the coordinates of three points of a triangle, x1,1, x2, y2, x3, and y3, and returns the perimeter of the triangle.

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!