Write a simple user interface which allows users to create


Please You need help with this java problem

Define a Polygon interface that has methods area() and perimeter(). Then implement classes for Triangle, Quadrilateral, Pentagon, Hexagon, and Octagon, which implement this interface, with the obvious meanings for the area() and perimeter() methods.

Also implement classes, IsoscelesTriangle, EquilateralTriangle, Rectangle, and Square, which have the appropriate inheritance relationships.

Finally, write a simple user interface, which allows users to create polygons of the various types, input their geometric dimensions, and then output their area and perimeter. also allow users to input polygons by specifying their vertex coordinates and be able to test if two such polygons are similar.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Write a simple user interface which allows users to create
Reference No:- TGS02892387

Now Priced at $15 (50% Discount)

Recommended (95%)

Rated (4.7/5)