Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write this program in python 3 to draw two snowman. thank you. In this part, you are going to use turtle graphics to draw
Please write this program in python 3 to draw two snowman. thank you.
In this part, you are going to use turtle graphics to draw two "Snow persons." You will define and use at least 7 classes in doing so. Using instances of these classes, you will write a main0 function that creates and draws two snow people Project Description Specification 1. Define a minimum of 7 classes. Most can be classes for geometric shapes (e.g., Line, Rectangle Circle, Triangle), but 3 must be "drawing-specific" classes (see #5) 2. Each class will have at least the following methods a. init the constructor will take arguments indicating the positions (coordinate pairs, e.g (0.0, 0.0)) of one or more reference points (e.g., start and end points for a line, vertices for a triangle, etc), and other arguments appropriate for an instance (e.g., pen color, fill color, etc.) To simplify creating instances, it will define appropriate default values for most of the arguments. (If the argument for fill color is the empty string the shape is not filled.) b. Str :a conversion method, it returns the string to be used for printing an instance in Python c. draw the draw method will take a turtle. Turtle object to use for drawing the shape. d. Other arguments may be required for your methods, all arguments will be described in your docstrings 3. All classes, methods and functions require a docstring for a general description of the object/method/function. (see DocStrings note below) 4. Define a main function that is called without any arguments. Your main function should create and draw two snow people at different positions on the canvas. 5. Define a drawing-specific class hierarchy containing (at least 3 classes: a. Snow person an instance contains (at least) the 3 snowballs b. Snow man specializes a Snow person with a handful of additional components (e.g., arms, buttons, head wear, two eyes and a mouth.) c. Snow Lady specializes a Snow person with an alternate set of additional components. 6. At a minimum, a snow person should include three snowballs, drawn one on top of the other. Feel free to personalize your classes to include other componentsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started