Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Make a new Command block called My8PointStar, which will draw a 8-Ponit-Star. Make this new block under the Pen blocks. The new block will accept
Make a new Command block called My8PointStar, which will draw a 8-Ponit-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 one top point of the star, the third is the size sides and the fourth 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. Your new block must use a loop instead of repeated sequences of move and turn blocks. Program 2: draw a Grid of Stars [9 marks] Use your My8PonitStar 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. Make a new Command block called My8PointStar, which will draw a 8-Ponit-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 one top point of the star, the third is the size sides and the fourth 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. Your new block must use a loop instead of repeated sequences of move and turn blocks. Program 2: draw a Grid of Stars [9 marks] Use your My8PonitStar 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started