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.. . . .



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
Get step-by-step solutions from verified subject matter experts
