Write an app with the following requirements:
Create an interface called RegularPolygon with two abstract methods: getNumSides and getSideLength;
Create a class EquilateralTriangle that implements the interface, has getNumSides return 3 and getSideLength return an instance variable that is set by the constructor;
Write a class Square that implements the interface, has getNumSides return 4 and getSideLength return an instance variable that is set by the constructor;
Add a static totalSides method to the interface, that given a RegularPolygon[], returns the sum of the number of sides of all the elements;
Add two default methods:
getPerimeter (n * length, where n is the number of sides)
getInteriorAngle ((n - 2 )π / n in radians)
First line contains number n (n ≤ 100) of geometric figures. Each next line contains the name of the figure (Triangle or Square) and its side length (double value).
For each figure print its name and side, perimeter and value of interior angle like given in the output. In the last line print the number of sides in all figures.