Answer to Question #92714 in Programming & Computer Science for sushma

Question #92714
Fill in the blanks in the following program so that it draws an array of 16 tiles, organized in 4 rows of 4 tiles each, with each tile being a square of side length 100 and there being 10 pixels between consecutive tiles in each row. The tiles are placed with sides vertical and horizontal.

repeat(4){
repeat(4){
repeat(4){forward(100); right(90);}
___
}
penUp(); forward(___); right(90); forward(___); right(270); penDown();
}

Fill in the blanks in both places with one or more commands.
1
Expert's answer
2019-08-16T10:44:21-0400

Fixed wrong indent.

-------

repeat(4){

repeat(4){

repeat(4){forward(100); right(90);}

penUp(); forward(110); penDown();

}

penUp(); forward(-440); right(90); forward(110); right(270); penDown();

}





P. S. If it is intended that there are NO spaces between rows, fill in the second blank with:

penUp(); forward(-440); right(90); forward(100); right(270); penDown();



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS