Create a new application (class) and call it ShapeExercise. Next, within the application, create a super class called Shape, two subclasses called equalSides and unequalSides, and a sub-sub class under equalSides called square and a sub-sub class under unequalSides called trapezoid.
The superclass Shape should have 2 methods - a set and get method to store the shape name.
No methods are needed for subclasses equalSides or unequalSides.
Two methods are needed for sub-sub class square - a set and get method to calculate the area (area of a shape is a side*side).
Two methods are needed for sub-sub class trapezoid - a set and get method to calculate the area (area of a trapezoid is a 0.5*(side1 + side2)*height ).
In the main method, you should ask the user whether they want to calculate the area of a square of trapezoid.
If they choose square, ask them for the length of a side. Set the shape name, set the area, and display the name of the shape, the length of the side, and the area of the square.
If they choose trapezoid, ask them for the length of a side1, length of side2, and the height. Set the shape name, set the area, and display the name of the shape, the length of side1, length of side2, the height, and the area of the trapezoid on the screen with the get methods.