How is polygon described?

Java Help: Need help in writing a program that computes the area and the circumference of any polygon.?

  • Hey to all the programming geniuses, I need help writing this program, A Polygon is a closed curve made up from line segments that join the polygon's corner points. Implement a class Polygon with methods public double perimeter() and public double area() that compute the circumference and area of a polygon. To compute the perimeter, compute the distance between adjacent points, and total up the distances.The area of a polygon with corners (x0, y0),…, (xn-1, yn-1) is 1/2(x0y0 + x1y2 + ... + xn-1y0 - y0x1 - y1x2 - ...- yn-1x0) I'll greatly appreciate your help.

  • Answer:

    What specific problems are you having? We don't want to do your homework for you.

Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.