Computer Science, asked by yashasvi648, 4 months ago

D.) What will the following commands do
1.)
FD 100
RT 90
RT 90
PU
FD 150
PD
BK 50
RT 90
FD 40
LT 90
FD 50
RT 90
FD 50
RT 90
FD 50​

Answers

Answered by ShardulD
0

Answer:

This set of commands will draw a square with sides of length 50 units.

Explanation:

FD 100

1. The turtle will move forward 100 units.

RT 90

2. Turn 90 degree toward right.

RT 90

3. Turn 90 degree toward right.

PU

4. Pen is up (PU).

FD 150

5. Move Forward by 150 Units without putting pen down.

PD

6. Pen is down.

BK 50

7. Move back by 50 units.

RT 90

8. Turn 90 Degree Toward Right.

FD 40

9. Move Forward by 400 units.

LT 90

10. Turn 90 Degree Toward Left.

FD 50

11. Move forward by 50 units.

RT 90

12. Turn 90 degree toward right.

FD 50

13. Move forward by 50 units.

RT 90

14. Turn 90 degree toward right

FD 50

15. Move forward by 50 units.

Similar questions