Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started