Program 1: Grid of Stars [8 marks] Make a new Command block called My7PointStar, which will draw a 7-Point-Star. Make th
Posted: Tue Jul 12, 2022 8:09 am
Program 1: Grid of Stars [8 marks] Make a new Command block called My7PointStar, which will draw a 7-Point-Star. Make this new block under the Pen blocks. The new block will accept 3 parameters; the first two are the x- and y- coordinates of the top point of the star, the third is the size (i.e. the length of one line). Shown here are how the new block should appear, and the result of using it. My7PointStar x size Your new block must use a loop instead of repeated sequences of move and turn blocks. Using your My7PointStar, draw a grid of stars like the one shown. (The sprite was moved off the visible part of the stage, but you don't have to do that.) Your grid should fill a large portion of the stage. To draw the grid, you certainly need to work with loops to draw rows (or columns). No mark would be awarded, if loops are not used in your script. Create a script to draw the grid. You may choose to make it into a block, but it can also simply be a script that is contained in the Scripting area and may be run by clicking on it. You can make the star any size you wish, but there should at least be 16 stars in the grid and the grid must completely fill in the stage and stars do not cross the edges of the stage.