Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started