Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Use python program language. Kindly include code with comments (to help with understanding) and screenshot of output Reference code in Mississippi turtles_template.py: Import additional

Please Use python program language. Kindly include code with comments (to help with understanding) and screenshot of output

image text in transcribed

Reference code in Mississippi turtles_template.py:

"""Import additional modules below this line (starting with unit 6)."""

from turtle import *

"""Write new functions below this line (starting with unit 4)."""

def start():

"""This function initializes the window and the turtle.

Do not modify this function or any of the properties it sets.

"""

setup(600, 400)

width(9)

color("purple")

def draw_e():

"""Write this function."""

def draw_i():

"""Write this function."""

def draw_l():

"""Write this function."""

def draw_M():

"""Write this function."""

def draw_p():

"""Write this function."""

def draw_r():

"""Write this function."""

def draw_s():

"""Write this function."""

def draw_t():

"""Write this function."""

def draw_u():

"""Write this function."""

def main():

"""After these lines, call your letter drawing functions

as needed to draw the words "Mississippi turtles".

"""

"""Do not change anything below this line."""

if __name__ == '__main__':

start()

main()

done()

05.4 - Mississippi Turtles Starting from the code provided in mississippi_turtles_template.py, complete each of the letter functions so that they will draw that letter on the screen. It helps to imagine each letter sitting inside of a rectangle (called a bounding box) as shown in Figure 1. To draw a letter, assume the turtle starts in the lower left corner of the bounding box, and make sure it ends in the lower right corner. The width of most letters should be about 60 pixels. Then fill in the main() function so that it calls each of the letter functions at the appropriate place to write the message "Mississippi turtles" on the screen as shown in Figure 2. Save your program asmississippi_turtles_login.py, where login is your Purdue login. Then submit it along with a screenshot showing the result. Figure 1: The letter ' e ' in a bounding box. Figure 2: A message drawn with the turtle for Exercise 05.4. Hints: - Your entire drawing must fit in the provided canvas. - Do not modify the size of the canvas provided in the template. - Start drawing in the northwest corner to make sure everything fits

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions

Question

Find the derivative. f(x) 8 3 4 mix X O 4 x32 4 x32 3 -4x - x2

Answered: 1 week ago

Question

Understand why customers are loyal to a particular service firm.

Answered: 1 week ago