python
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.
Submit the copied and pasted code into a document and include a screen shot of it working on your own computer system.
8 years ago
15
Answer(1)![blurred-text]()
![]()
Purchase the answer to view it

NOT RATED
- house.py
other Questions(10)
- bonieta123 only!!
- ENG 102 Victorian Cultural Study
- Assume C0 = 200, I0 = 200, G0 = 100, X0 = 100, M0 = 100, T (taxes)= 100 Marginal propensities: c1 = 0.8, i1 = 0.1, m1 = 0.15 Aggregate Expenditure: E = C0 + c1(Y – T) + I0 + i1Y + G0 + X0 – M0 – m1Y Calculate aggregate expenditure in equilibrium where E=
- Compliance reports AIDs/HIV
- Photosynthesis Lab Report
- HUM 112 Discussion
- Mutunga
- Basic Research methods
- For nimmo
- ANT 101 Week 1 DQ 2 Studying Culture