4.02.docx - 04.02 More Decisions Name: This assignment has...

This preview shows page 1 - 2 out of 4 pages.

04.02 More DecisionsName:This assignment has three parts.Part One: ProgrammingWrite a program to move the Turtle based on the user’s request. Display a menu withoptions for the user to choose. Use the following guidelines to write your program.1.Create a menu that gives the user options for moving the Turtle. The menushould contain letters or numbers that align with movements such as forward,backward, and/or drawing a particular pattern.2.Use at least oneif-elseorelifstatement in this program. It should be used tomove the Turtle based on the user's input.3.A loop is optional but may be used to ask the user to select multiple choices.4.Use one color other than black.
5.Write the pseudocode for this program. Be sure to include any needed input,calculations, and output.Insert your pseudocode here:import turtledef basicHouse(t):t = turtle.Turtle()t.color("yellow")t.penup()t.setpos(-70, -180)t.pendown()t.shape("turtle")t.begin_fill()t.color("red")t.forward(150)t.left(90)t.forward(150)t.left(90)t.forward(150)t.left(90)

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 4 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture