Jython Programming 4

ProfSteven

Using Jython 5.0 or higher


 

Develop 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

Copy and paste code and screenshots of the code working in a 1/2-page Word document.

    • 8 years ago
    • 40
    Answer(1)

    Purchase the answer to view it

    NOT RATED
    • Untitleddocument1.docx
    • jythontask2.docx