Question: Define a struct Point that has two components x and y of type float. Define a class Polygon that has private data members numberOfPoints, length
Define a struct Point that has two components and of type float. Define a class Polygon that has
private data members numberOfPoints, length of type float, a pointer of type Point, and
findLength The class has the public member functions setint get print a parameterized
constructor with a default value, and a copy constructor.
Implement the member functions of the class, including all #include, etc.
Sample inputoutput:
Enter the and coordinates of the points:
The polygon has points and length
Hints
Length should be in c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
