Question: If n points are connected to form a closed polygon as shown below, the area A of the polygon can be computed Represent the (x,

If n points are connected to form a closed polygon as shown below, the area A of the polygon can be computed

Represent the (x, y) coordinates of the connectedf points as two arrays of at most 20 type double values. For one of your tests, use the following data set, which defines a polygon whose area is 25.5 square units.. . . .

If n points are connected to form a closed polygon as shown

below, the area A of the polygon can be computed Represent the

(x, y) coordinates of the connectedf points as two arrays of at

Requirements: Create a directory called lab4. You must follow the description in the book, except for those items listed below. Instead of reading in an input file, I want you to use file redirection. You must use the file: X_y_polygon.txt (in /public/csci112 as your input.) O /lab4 /examples/lab4/x_y_polygon.txt or copy the file into your directory: ./lab4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!