Fill in the blanks in the following program so that it draws the given picture. Each
figure is a rhombus with side 100 and interior angles (60, 120, 60, 120). The distance
between 2 adjacent rhombuses is 20 (between their closest vertices).
repeat(2){
repeat(2){
B1;
left(B3);
B1;
left(120);
}
right(120);
penUp();
B2;
penDown();
repeat(2){
B1;
left(120);
B1;
left(B3);
}
right(B3);
penUp();
B2;
penDown();
}
What is command B1?
forward(100)
forward(20)
backward(100)
backward(20)
What is command B2?
forward(100)
forward(20)
backward(100)
backward(20)
What is B3?
b1 command to print top horizontal line
b2 prints left verical
b3 prints bottomhorizontal line
Comments
Leave a comment