Question: Write a program that prompts the user for int values and uses them to create three instances of the Point class from java.awt. Use the

Write a program that prompts the user for int values and uses them to create three instances of the Point class from java.awt. Use the Point class's distance method to calculate the distances between the three points******. These three distances are the side lengths for a triangle. Calculate and print the perimeter and area of the triangle (check out Heron's formula for the area on google!).

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!