Question: Java code Thank you use Polygon do this question No Junit test case needed for this lab. But you should run methods in main(String[] args)


Java code
Thank you
use Polygon do this question
No Junit test case needed for this lab. But you should run methods in main(String[] args) as demos. Failure to do so will lose maximum of 15 points. See detail in canvas rubric Write a program with function printCheckBoard( int size ) which draws the checkboard (given on the right). Use any combination of two colors. The requirements are as follow: 1. For each block, please use triangles instead of squares V Draw Rectangle drawPolygon(x, y z) drawPolygon(x, y z) Not OK!!! OK!! 2. The input size determines the length and width of each small square in checkboard. 3. Number of blocks in each row should always be 8 (4 with color-1 and 4 with color-2). 4. Do not hardcode the board!! You should use loops to generate the board. 5. Use of scanner is not required. But you should print at least two checkboards in your main(String[] args) function with different size
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
