Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING PYHTON 11- write a function named capT that uses turtle graphics to draw a capital letter T of specific height , the function takes

USING PYHTON 11- write a function named capT that uses turtle graphics to draw a capital letter T of specific height , the function takes two parameters: turt( a turtle tha is used for drawing) and height( the height of the letter t ). The cross stroke of t should be half the lenght of the height stroke.. The T should be draw beggining at the initial position and orientation of turt. and should leave turt in the same position and orientation on exit.

11b- Write a function named tRow that uses turtle graphics and the function capT to draw a series of capital T's of increasing or decreasing size. the T's should all rest in a common baseline.(which is not drawn). the enclosing rectangle for each letter T should just be touch by not overlap the enclosing rectangle of the next T.( do not draw the enclosing rectangle). The function tRow should call capT repeatedly to draw the T's and it takes 4 parameters. 1-t (a turtle use for drawing) 2- num ( number of T's to draw) 3-init (the height of the first T and 4- ratio ( the ratio of the heights of successive T's).

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

Describe the sources of long term financing.

Answered: 1 week ago