Jim Lindsay 4.02 More Decisions Assignment.docx - #Jim...

This preview shows page 1 - 5 out of 5 pages.

#Jim Lindsay#3/18/19#4.02 More Decisions Assignment#Purpose: To write a program using if-else statementsimport turtledef drawFace(t):t.color("yellow")t.penup()t.setpos(0, -30)t.pendown()t.begin_fill()t.circle(80)t.end_fill()t.color("black")t.penup()t.setpos(30, 65)t.pendown()t.begin_fill()t.circle(15)t.end_fill()t.penup()t.setpos(-30, 65)t.pendown()t.begin_fill()t.circle(15)
t.end_fill()t.color("red")t.width(10)t.penup()t.setpos(-38, 30)t.right(90)t.pendown()t.begin_fill()t.circle(40, 180)t.end_fill()def drawRobot(t):t.penup()t.setpos(-150, -20)t.color("red")t.pendown()t.begin_fill()t.forward(180)t.left(90)t.forward(130)t.left(90)t.forward(180)t.left(90)t.forward(130)t.end_fill()t.penup()
t.color(“blue”)t.setpos(-120, 90)t.pendown()t.begin_fill()t.pensize(5)t.forward(30)t.left(90)t.forward(40)t.left(90)t.forward(30)t.left(90)t.forward(40)t.color("white")t.end_fill()t.left(90)t.penup()t.penup()t.color(“blue”)t.setpos(-40, 90)
End of preview. Want to read all 5 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
brown
Tags
Purpose, Jim

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture