A polygon is convex if it contains any line segments that connects two points of the polygon.

Question:

A polygon is convex if it contains any line segments that connects two points of the polygon. Write a program that prompts the user to enter the number of points in a convex polygon, enter the points clockwise, then displays the area of the polygon. For the formula for computing the area of a polygon, see http://www.mathwords.com/a/area_convex_polygon.htm. Here is a sample run of the program:

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: