Question: Write a Java program which will allow the user to enter a set of points from the 2D Cartesian plane and find out certain things

 Write a Java program which will allow the user to enter

Write a Java program which will allow the user to enter a set of points from the 2D Cartesian plane and find out certain things about this set of points. The user gets to choose how many points they want to enter during any given run of the program. The program should store the points entered by the user in a 2D array. After the points are entered by the user, the user gets to choose from the following menu: 1. Determine if all points are on the same line 2. Determine the most central point to the others 3. Find the two points that are farthest apart 4. Exit Hint: The most central point can be determined by the smallest total distance to all other points. Make sure you use the PointList class from lecture for this project

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!