Blockly is a visual editor that allows users to write programs by plugging blocks together.
Blockly #1 Go to Blockly Maze and try to complete the 10 levels. On levels 7, 9, and 10 snip the code and explain what each block is doing. Blockly Maze
Blockly #2 Go to Blockly Turtle and try to complete as many levels as possible. If you get to level 10 you will be able to create your own drawings. Blockly Turtle
Blockly #3 Go to Blockly Turtle and select level 10. While on level 10 draw two + signs 150 units tall by 150 units wide: a. using just blocks b. using a repeat block.
Blockly #4 - Draw 5 lines 300 units wide separated by 30 units.
Blockly #5 - Draw the following figure. Try to draw it with just 8 MOVE statements or less while also incorporating a Repeat block.
\
Blockly #6 - Draw a 3 by 3 grid of squares. Each square should be a different color. Use a FUNCTION to draw each square. Challenge: Incorporate repeating loops throughout.
Blockly #7 - Draw a sequence of squares that have a common bottom left corner. Each square should be at a different/random angle and each should be a different color. Use a Function and Repeating loop.
Blockly #8 - Blockly Partner Assignment Prepare a program that will simulate the toss of a coin. The program should randomly select Heads or Tails using a random number between 1 and 100. Draw the "H" or "T" and then complete the word with text. Below the word "Heads" or "Tails", display the actual random number. Each teammate should complete the program on his or her computer. When done,each partner should submit their result through Google Classroom.
Blockly #9. Create a program that will draw between 2 and 10 lines 300 units long and 30 units apart. The lines will be drawn either horizontally or vertically depending on a Random number. The number of lines will also be determined by a Random number. The program must use at least two Functions. (This program may be completed with a partner with each person submitting the code.)
Blockly #10 Create a Main Code block to call the two functions which are created below. In between the each function move the Turtle so that the drawing from the first function does not print on the second one.
1. Recreate the code below to make it more organized and streamlined.
Take the code listed below and:
-
create a function that will draw the Pentagon
-
Inside the function use a loop so you only need one forward block and one right block
-
Set the color to RED
Take the code listed below and:
create a function that will draw the Pentagon
Inside the function use a loop so you only need one forward block and one right block
Set the color to RED
2. Create this code block in a function.
-
Create a variable called randomnumber
-
Set randomnumber to between 1-10
-
Create a function called SHOW
-
evaluate if randomnumber is less than 5 print randomnumber in RED
-
evaluate if randomnumber is greater than 5 print randomnumber in YELLOW
-
evaluate if randomnumber equals 5 print randomnumber in WHITE
Create a variable called randomnumber
Set randomnumber to between 1-10
Create a function called SHOW
- evaluate if randomnumber is less than 5 print randomnumber in RED
- evaluate if randomnumber is greater than 5 print randomnumber in YELLOW
- evaluate if randomnumber equals 5 print randomnumber in WHITE
Blockly Summative Exam
Plan out the steps necessary and then complete a Blockly program that will complete the following:
Draw three geometric shapes in a row. The shapes are: Triangle, Square and Pentagon. The shapes will be randomly selected using a variable and will be drawn using a random color. Each of the shapes should be drawn using a repeat block. The program must create and use 4 Functions.
The program will be graded on the following criteria:
- Overall Operations
- Use of Variables
- Use of Loops (Repeat blocks)
- Use of Functions
- Use of If/Then blocks
Submit a link to the program along with snips of the code.
Plan out the steps necessary and then complete a Blockly program that will complete the following:
Draw three geometric shapes in a row. The shapes are: Triangle, Square and Pentagon. The shapes will be randomly selected using a variable and will be drawn using a random color. Each of the shapes should be drawn using a repeat block. The program must create and use 4 Functions.
The program will be graded on the following criteria:
- Overall Operations
- Use of Variables
- Use of Loops (Repeat blocks)
- Use of Functions
- Use of If/Then blocks
Submit a link to the program along with snips of the code.
No comments:
Post a Comment