SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 11 Oct 2017 My Price 8.00

Write a function named spiral that uses turtle graphics and the function

Question 11B (14 points)

Write a function named spiral that uses turtle graphics and the function midline from Question 11a to draw a sequence of lines of increasing length. Each line is larger than the preceding one by a fixed multiplier.

All the lines share a common midpoint. The function spiral takes five parameters:

  1. t, a turtle that is used to draw the spiral
  2. length, an integer that is the length of the first line
  3. multiplier, floating point number greater than 1.0 that is the
     ratio of the length of successive lines
  1. numlines, a positive integer that is the number of lines to draw
  2. angle, a positive integer that is the counterclockwise rotation
     between successive lines

The function spiral should:

  1. call the function midline repeatedly to draw a series of lines of increasing length with a common midpoint (the initial position of t)
  2. rotate t counterclockwise after drawing each line
For example, the following would be correct graphical output for the
function call
import turtle
s = turtle.Screen()
t = turtle.Turtle()
spiral(t, 50, 1.1, 15, 12)

Answers

(5)
Status NEW Posted 11 Oct 2017 11:10 AM My Price 8.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)