Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

IT Tutorial (November-Term2)-Ricky

Answer the following questions. (30 Marks)

Write programs to draw shapes use with basic commands: Pen color, pen
width, background color and hide the turtle.

Shape 1A

Turtle.Show()
GraphicsWindow.PenColor="Blue"

GraphicsWIndow.BackgroundColor="Pink"

GraphicsWindow.PenWidth=3

Turtle.Move(50)

Turtle.TurnLeft()

Turtle.Move(150)

Turtle.TurnRight()

Turtle.Move(150)

Turtle.TurnRight()

Turtle.Move(150)

Turtle.TurnLeft()

Turtle.Move(50)
Turtle.TurnLeft()

Turtle.Move(200)

Turtle.TurnLeft()

Turtle.Move(250)

Turtle.TurnLeft()

Turtle.Move(200)

Turtle.Hide()

Shape 2A

Turtle.Show()

GraphicsWindow.PenColor="Red"
GraphicsWIndow.BackgroundColor="Pink"

GraphicsWindow.PenWidth=4

Turtle.Turn(45)

Turtle.Move(200)

Turtle.Turn(135)

Turtle.Move(200)

Turtle.Turn(90)

Turtle.Move(200)

Turtle.Turn(135)

Turtle.Move(100)

Turtle.Hide()

You might also like