Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java HELPPP.. I need someone to show me what this should look like. Its basicall

ID: 3877710 • Letter: J

Question

Java HELPPP.. I need someone to show me what this should look like. Its basically to help me understand the benefits of OOP programming, And i need to follow these guidlines to make a private/final class for a few classes .. PLEASE HELP loll

THE POINT.java and test cases are at the bottom... Ill literally pay someone lol

[Point.java]

public class Point {

[PartOneTest file]

[PartTwoTestFile]

1/22/2018 Lab 2, CSC/CPE 203 - static methods v. instance methods Orientation This lab explores writing static methods versus instance methods in Java. Both are useful ways to get something done (a computation), but as we develop more complex code, there are lots of reasons to strongly associate a computation with a specific instance of an object (associate data and computation together in one object) Objectives To be able to write static methods that can compute the perimeter of three different types of geometric shapes (Circle, Rectangle and Polygon part 1) .To be able to write instance methods to compute the perimeter of three different types of geometric shapes (part 2) To be able to write a static method to compare the perimeters of different objects (part 1 & 2) To be able to write your own test cases to create geometric shapes and test the computation of their perimeter, and the computation of comparison of their sizes (measured as perimeter) (part 1 & 2) Resources Same as the last two labs You can get the base code her Part 1: Classes and Overloaded Methods In the provided part1 subdirectory, implement the following classes with these general requirements .Each instance variable must be private and final Provide the appropriate "accessorl"getter" methods for the instance variables. (see PartOneTestCases.java for names) . You may add methods beyond those required, but any such additional method must be private. Automaton Warning: You are an intelligent person; you should not just mechanically apply these rules only to satisfy a style checker in order to complete the lab. Instead, consider the reasons for these rules, what violating them exposes to the user/client of the corresponding class, and what following them guarantees to you, the implementer. If you aren't sure, ask your neighbor, they might have thoughts of their own Classes 1/3

Explanation / Answer

Circle.java:

Rectangle.java:

Polygon.java:

Util.java:

================

As i do not have java8 installed on my system, i am unable to run the test files.. but They should run fine.. i have coded accordingly only.  In case of any doubts, please ask in comments. If the answer helps you, please upvote. Thanks!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote