Missing Something Below Which Is Preventing The Code From Running No Errors Usin

g Netbeans but it will not run ,

any ideas ? 

package TestPolygon;

/**

* CMIS 141

* Jonathan Warren

* February 2,2017

* Purpose: Write a Java test program, named TestPolygon, create 5 different polygons representing the 5 test

cases created. Create one using the no argument constructor.

*/

public class TestPolygon{

public static void main(String[] args) {

//Make a polygon with default construct

Polygon defaultPolygon = new Polygon();

//Construct polygon #2

Polygon polygonTwo = new Polygon(5, 4.0, 3.0, 2.0, 1.5, 25.0);

//Construct polygon #3

Polygon polygonThree = new Polygon(10, 10.0, 3.5, 3.5, 7.0, 40.0);

//Construct polygon #4

Polygon polygonFour = new Polygon(4, 2.0, 2.0, 3.0, 1.5, 5.0);

//Construct polygon #5

Polygon polygonFive = new Polygon(7, 7.0, 7.5, 7.5, 2.0, 11.0);

//Default Polygon

System.out.println(“Default polygon data”);

//Get methods for default

int defaultPolygonSides = defaultPolygon.getSides();

System.out.println(“Default polygon has # sides: ” + defaultPolygonSides);

double defaultPolygonLength = defaultPolygon.getLength();

System.out.println(“Default polygon has side length: ” + defaultPolygonLength);

double defaultPolygonX = defaultPolygon.getX();

System.out.println(“Default polygon has X Coordinate: ” + defaultPolygonX);

double defaultPolygonY = defaultPolygon.getY();

System.out.println(“Default polygon has Y Coordinate: ” + defaultPolygonY);

double defaultPolygonApothem = defaultPolygon.getApothem();

System.out.println(“Default polygon has apothem: ” + defaultPolygonApothem);

double defaultPolygonPerimeter = defaultPolygon.getPerimeter(defaultPolygonSides, defaultPolygonLength);

System.out.println(“Default polygon has perimeter: ” + defaultPolygonPerimeter);

double defaultPolygonArea = defaultPolygon.getArea(defaultPolygonApothem, defaultPolygonPerimeter);

System.out.println(“Default polygon has area: ” + defaultPolygonArea);

//To string method

String defaultPolygonString = defaultPolygon.toString();

System.out.println(defaultPolygonString);

//Set methods for default

defaultPolygon.setSides(5);

defaultPolygonSides = defaultPolygon.getSides();

System.out.println(“Default polygon now has # sides: ” + defaultPolygonSides);

defaultPolygon.setLength(11);

defaultPolygonLength = defaultPolygon.getLength();

System.out.println(“Default polygon now has side length: ” + defaultPolygonLength);

defaultPolygon.setX(1.0);

defaultPolygonX = defaultPolygon.getX();

System.out.println(“Default polygon now has X Coordinate: ” + defaultPolygonX);

defaultPolygon.setY(1.0);

defaultPolygonY = defaultPolygon.getY();

System.out.println(“Default polygon now has Y Coordinate: ” + defaultPolygonY);

defaultPolygon.setApothem(5.5);

defaultPolygonApothem = defaultPolygon.getApothem();

System.out.println(“Default polygon now has apothem: ” + defaultPolygonApothem);

defaultPolygonPerimeter = defaultPolygon.getPerimeter(defaultPolygonSides, defaultPolygonLength);

System.out.println(“Default polygon now has perimeter: ” + defaultPolygonPerimeter);

defaultPolygonArea = defaultPolygon.getArea(defaultPolygonApothem, defaultPolygonPerimeter);

System.out.println(“Default polygon now has area: ” + defaultPolygonArea);

// Second Polygon

System.out.println(“”);

System.out.println(“Polygon #2 data”);

//Get methods for polygon #2

int polygonTwoSides = polygonTwo.getSides();

System.out.println(“Polygon #2 has # sides: ” + polygonTwoSides);

double polygonTwoLength = polygonTwo.getLength();

System.out.println(“Polygon #2 has side length: ” + polygonTwoLength);

double polygonTwoX = polygonTwo.getX();

System.out.println(“Polygon #2 has X Coordinate: ” + polygonTwoX);

double polygonTwoY = polygonTwo.getY();

System.out.println(“Polygon #2 has Y Coordinate: ” + polygonTwoY);

double polygonTwoApothem = polygonTwo.getApothem();

System.out.println(“Polygon #2 has apothem: ” + polygonTwoApothem);

double polygonTwoPerimeter = polygonTwo.getPerimeter(polygonTwoSides, polygonTwoLength);

System.out.println(“Polygon #2 has perimeter: ” + polygonTwoPerimeter);

double polygonTwoArea = polygonTwo.getArea(polygonTwoApothem, polygonTwoPerimeter);

System.out.println(“Polygon #2 has area: ” + polygonTwoArea);

//To string method

String polygonTwoString = polygonTwo.toString();

System.out.println(polygonTwoString);

//Set methods for polygon #2

polygonTwo.setSides(5);

polygonTwoSides = polygonTwo.getSides();

System.out.println(“Polygon #2 now has # sides: ” + polygonTwoSides);

polygonTwo.setLength(11);

polygonTwoLength = polygonTwo.getLength();

System.out.println(“Polygon #2 now has side length: ” + polygonTwoLength);

polygonTwo.setX(1.0);

polygonTwoX = polygonTwo.getX();

System.out.println(“Polygon #2 now has X Coordinate: ” + polygonTwoX);

polygonTwo.setY(1.0);

polygonTwoY = polygonTwo.getY();

System.out.println(“Polygon #2 now has Y Coordinate: ” + polygonTwoY);

polygonTwo.setApothem(5.5);

polygonTwoApothem = polygonTwo.getApothem();

System.out.println(“Polygon #2 now has apothem: ” + polygonTwoApothem);

polygonTwoPerimeter = polygonTwo.getPerimeter(polygonTwoSides, polygonTwoLength);

System.out.println(“Polygon #2 now has perimeter: ” + polygonTwoPerimeter);

polygonTwoArea = polygonTwo.getArea(polygonTwoApothem, polygonTwoPerimeter);

System.out.println(“Polygon #2 now has area: ” + polygonTwoArea);

//Polygon #3

System.out.println(“”);

System.out.println(“Polygon #3 data”);

//Get methods for polygon #3

int polygonThreeSides = polygonThree.getSides();

System.out.println(“Polygon #3 has # sides: ” + polygonThreeSides);

double polygonThreeLength = polygonThree.getLength();

System.out.println(“Polygon #3 has side length: ” + polygonThreeLength);

double polygonThreeX = polygonThree.getX();

System.out.println(“Polygon #3 has X Coordinate: ” + polygonThreeX);

double polygonThreeY = polygonThree.getY();

System.out.println(“Polygon #3 has Y Coordinate: ” + polygonThreeY);

double polygonThreeApothem = polygonThree.getApothem();

System.out.println(“Polygon #3 has apothem: ” + polygonThreeApothem);

double polygonThreePerimeter = polygonThree.getPerimeter(polygonThreeSides, polygonThreeLength);

System.out.println(“Polygon #3 has perimeter: ” + polygonThreePerimeter);

double polygonThreeArea = polygonThree.getArea(polygonThreeApothem, polygonThreePerimeter);

System.out.println(“Polygon #3 has area: ” + polygonThreeArea);

//To string method

String polygonThreeString = polygonThree.toString();

System.out.println(polygonThreeString);

//Set methods for polygon #3

polygonThree.setSides(5);

polygonThreeSides = polygonThree.getSides();

System.out.println(“Polygon #3 now has # sides: ” + polygonThreeSides);

polygonThree.setLength(11);

polygonThreeLength = polygonThree.getLength();

System.out.println(“Polygon #3 now has side length: ” + polygonThreeLength);

polygonThree.setX(1.0);

polygonThreeX = polygonThree.getX();

System.out.println(“Polygon #3 now has X Coordinate: ” + polygonThreeX);

polygonThree.setY(1.0);

polygonThreeY = polygonThree.getY();

System.out.println(“Polygon #3 now has Y Coordinate: ” + polygonThreeY);

polygonThree.setApothem(5.5);

polygonThreeApothem = polygonThree.getApothem();

System.out.println(“Polygon #3 now has apothem: ” + polygonThreeApothem);

polygonThreePerimeter = polygonThree.getPerimeter(polygonThreeSides, polygonThreeLength);

System.out.println(“Polygon #3 now has perimeter: ” + polygonThreePerimeter);

polygonThreeArea = polygonThree.getArea(polygonThreeApothem, polygonThreePerimeter);

System.out.println(“Polygon #3 now has area: ” + polygonThreeArea);

//Polygon #4

System.out.println(“”);

System.out.println(“Polygon #4 data”);

//Get methods for Polygon #4

int polygonFourSides = polygonFour.getSides();

System.out.println(“Polygon #4 has # sides: ” + polygonFourSides);

double polygonFourLength = polygonFour.getLength();

System.out.println(“Polygon #4 has side length: ” + polygonFourLength);

double polygonFourX = polygonFour.getX();

System.out.println(“Polygon #4 has X Coordinate: ” + polygonFourX);

double polygonFourY = polygonFour.getY();

System.out.println(“Polygon #4 has Y Coordinate: ” + polygonFourY);

double polygonFourApothem = polygonFour.getApothem();

System.out.println(“Polygon #4 has apothem: ” + polygonFourApothem);

double polygonFourPerimeter = polygonFour.getPerimeter(polygonFourSides, polygonFourLength);

System.out.println(“Polygon #4 has perimeter: ” + polygonFourPerimeter);

double polygonFourArea = polygonFour.getArea(polygonFourApothem, polygonFourPerimeter);

System.out.println(“Polygon #4 has area: ” + polygonFourArea);

//To string method

String polygonFourString = polygonFour.toString();

System.out.println(polygonFourString);

//Set methods for polygon #4

polygonFour.setSides(5);

polygonFourSides = polygonFour.getSides();

System.out.println(“Polygon #4 now has # sides: ” + polygonFourSides);

polygonFour.setLength(11);

polygonFourLength = polygonFour.getLength();

System.out.println(“Polygon #4 now has side length: ” + polygonFourLength);

polygonFour.setX(1.0);

polygonFourX = polygonFour.getX();

System.out.println(“Polygon #4 now has X Coordinate: ” + polygonFourX);

polygonFour.setY(1.0);

polygonFourY = polygonFour.getY();

System.out.println(“Polygon #4 now has Y Coordinate: ” + polygonFourY);

polygonFour.setApothem(5.5);

polygonFourApothem = polygonFour.getApothem();

System.out.println(“Polygon #4 now has apothem: ” + polygonFourApothem);

polygonFourPerimeter = polygonFour.getPerimeter(polygonFourSides, polygonFourLength);

System.out.println(“Polygon #4 now has perimeter: ” + polygonFourPerimeter);

polygonFourArea = polygonFour.getArea(polygonFourApothem, polygonFourPerimeter);

System.out.println(“Polygon #4 now has area: ” + polygonFourArea);

//Polygon #5

System.out.println(“”);

System.out.println(“Polygon #5 data”);

//Get methods for Polygon #5

int polygonFiveSides = polygonFive.getSides();

System.out.println(“Polygon #5 has # sides: ” + polygonFiveSides);

double polygonFiveLength = polygonFive.getLength();

System.out.println(“Polygon #5 has side length: ” + polygonFiveLength);

double polygonFiveX = polygonFive.getX();

System.out.println(“Polygon #5 has X Coordinate: ” + polygonFiveX);

double polygonFiveY = polygonFive.getY();

System.out.println(“Polygon #5 has Y Coordinate: ” + polygonFiveY);

double polygonFiveApothem = polygonFive.getApothem();

System.out.println(“Polygon #5 has apothem: ” + polygonFiveApothem);

double polygonFivePerimeter = polygonFive.getPerimeter(polygonFiveSides, polygonFiveLength);

System.out.println(“Polygon #5 has perimeter: ” + polygonFivePerimeter);

double polygonFiveArea = polygonFive.getArea(polygonFiveApothem, polygonFivePerimeter);

System.out.println(“Polygon #5 has area: ” + polygonFiveArea);

//To string method

String polygonFiveString = polygonFive.toString();

System.out.println(polygonFiveString);

//Set methods for polygon #5

polygonFive.setSides(5);

polygonFiveSides = polygonFive.getSides();

System.out.println(“Polygon #5 now has # sides: ” + polygonFiveSides);

polygonFive.setLength(11);

polygonFiveLength = polygonFive.getLength();

System.out.println(“Polygon #5 now has side length: ” + polygonFiveLength);

polygonFive.setX(1.0);

polygonFiveX = polygonFive.getX();

System.out.println(“Polygon #5 now has X Coordinate: ” + polygonFiveX);

polygonFive.setY(1.0);

polygonFiveY = polygonFive.getY();

System.out.println(“Polygon #5 now has Y Coordinate: ” + polygonFiveY);

polygonFive.setApothem(5.5);

polygonFiveApothem = polygonFive.getApothem();

System.out.println(“Polygon #5 now has apothem: ” + polygonFiveApothem);

polygonFivePerimeter = polygonFive.getPerimeter(polygonFiveSides, polygonFiveLength);

System.out.println(“Polygon #5 now has perimeter: ” + polygonFivePerimeter);

polygonFiveArea = polygonFive.getArea(polygonFiveApothem, polygonFivePerimeter);

System.out.println(“Polygon #5 now has area: ” + polygonFiveArea);

}

}

Duepapers
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.