Your task is to write python program that draws a board with alternating dark cells (black or some other color)and white cells. The number of cells to use in each row or column, width of each cell, and color to use for darkcells (either black, red, green, or blue) should be collected from the keyboard after showing appropriate inputprompt messages. Note the following requirements:• The program can either start with a dark (colored) cell or white cell. In the figure below, theboard starts with dark cell.• The program should draw an N by N board where N is the number of cells in a row (or a column).Note that the shape of board and the cells are both square.• The program should draw a border (black line) around the board as shown in the figure.• The program must prompt for input from the keyboard and then validate the input as follows:o Number of cells in each row or column must be positive number > 1o Width of each cell must be a positive number > 9o The color can be one of 4 colors only: black, red, green or blue.• If any of the provided input is invalid then the program should show a warning message and usethe default value for that variable as follows: 8 for the number of cells, 25 for the cell width andblack for the color of the dark cells.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here