Hi all

I need help with C++, I need to develop a class specification and an irregular polygon application. I am stuck and don't know what to do.I have tried to solve it but it keeps giving me errors.

If anyone is kindly to help me out, I would be very grateful for it :)

these are the requirements:

The point P1 has coordinates {X1,Y1}.

The point P2 has coordinates {X2,Y2}.

The length of the line joining P1 and P2 is given by the equation:

{ (X2 - X1)2 + (Y2 - Y1)2 }1/2

Develop a class specification for the class Point (the data members and the prototypes for the member functions) in the file point.h.

Develop the implementation of the member functions in the file point.cc

Develop a class specification for the class Line (the data members and the prototypes for the member functions) in the file line.h.

Develop the implementation of the member functions in the file line.cc

to determine the length of the boundary of an irregular polygon.

The polygon may have between 3 and 9 sides.

The user should be prompted to enter the number of sides and the coordinates of each vertex point.

The program should then calculate and display the total length of the boundary.

You should write a main function to implement this using your Point and Line classes and test the program thoroughly.

Thanks in advance