Question: In java please Download this zip file which contains the partially complete Point and Lab7 classes. If you are using Eclipse, start a new project


In java please
Download this zip file which contains the partially complete Point and Lab7 classes. If you are using Eclipse, start a new project and add two new classes to that project: Point and Lab7. Copy and the code from the downloaded files and paste them into those two classes If you are using the command-prompt, you can store those two downloaded Java files in whatever location you store your work, and then start editing them. You will need to complete the code in the two classes to finish the lab: 1. Finish the Point class. The class should have: oAn instance variable for the x-coordinate and an instance variable for the y-coordinate, both ints (THIS IS DONE) oA constructor that takes values for the x- and y-coordinates, and initializes the instance variables (THIS IS DONE) A print method, that prints the x-and y-coordinates in the form: (x,y)(YOU DO THIS) A quadrant method, that returns an int for which quadrant that point is in. In the case of points on an axis, return any quadrant that matches (YOU DO THIS) Quadrant 1: Upper-right .Quadrant 2: Upper-left Quadrant 3: Lower-left Quadrant 4: Lower-right 2. Finish the Lab7 class. Part of this class is already done. In the end, you should: Create two Point objects: one that represents (3,5) and one that represents (-2,7) o Call the print method on each point o Call the quadrant method for each point, and print the result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
