Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON 3.6 Problem 11 Part A: (12 points) Write a function named parallelLines. The function parallelLines() takes three parameters: 1. a turtle, t 2. an

PYTHON 3.6

image text in transcribed

Problem 11 Part A: (12 points) Write a function named parallelLines. The function parallelLines() takes three parameters: 1. a turtle, t 2. an integer, numLines, that is the number of parallel lines to draw 3. an integer, lineLength, that is the length of each line The function parallelLines() should use the turtle t to draw the lines specified by the parameters numLines and lineLength. The space between parallel lines should be 25. You should not make any assumption about the state of the pen that is passed as a parameter, and there is no specification concerning the state of the pen when the function terminates For example, if numLines-5 and lineLength == 100, the following is correct output Problem 11 Part B (8 points) Write code that calls parallelLines(), using the parameters in the example in part A. (Hint: before calling the function, you must import the turtle module and create a turtle.)

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

What does ARP stand for? What task does an ARP perform?

Answered: 1 week ago

Question

a. How do you think these stereotypes developed?

Answered: 1 week ago

Question

7. Describe phases of multicultural identity development.

Answered: 1 week ago