Question: Java program Create a driver class which will create an array of 1O Regular Pol ygon objects. Set the side with a random number Erom
Create a driver class which will create an array of 1O Regular Pol ygon objects. Set the side with a random number Erom 2 to 10 and set n with a random number from 3 to 8. Display the following for each polygon: Perimeter . Area Type of Polygon Type Polygon is based on the number of sides Sides Triangle Quadrilateral Pentagon Hexagon Heptagon Octagon
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
