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
Related Q & A:
- I need help with recording a Dazzle.Best solution by Yahoo! Answers
- I need help with writing up the Java Code.Best solution by Yahoo! Answers
- Help on writing a resume objective?Best solution by Yahoo! Answers
- I need tips for writing a song.Best solution by Yahoo! Answers
- Can you help to writing a cover letter?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.