Develop a script containing new methods for the turtle class


Python Assignment

As defined on pp. 449 to 468 in Ch. 17, "Object-Oriented Programming," of Introduction to Computing and Programming in Python, a Turtle is an object from the class Turtle with the following features:

• Every turtle understands the same methods.
• Every turtle has the same fields or instance variables.
• Every turtle has a heading, body color, pen color, and X and Y position.

Yet, each turtle can have its own values for these fields.

Develop a script containing three new methods for the Turtle class as follows:

• Add a method to the Turtle class to draw a rectangle given a certain width and height.
• Add a method to the Turtle class to draw a simple house. It can have a rectangle for the house and an equilateral triangle as the roof.
• Add a method to the Turtle class to draw a street of houses.

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also include a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also Include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Python Programming: Develop a script containing new methods for the turtle class
Reference No:- TGS02957829

Now Priced at $35 (50% Discount)

Recommended (97%)

Rated (4.9/5)