Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON PROGRAMMING . internal form: Graphics is a core foundation of computing technology. Although it is common to hear this word in gaming contexts, graphics
PYTHON PROGRAMMING
.
internal form:
Graphics is a core foundation of computing technology. Although it is common to hear this word in gaming contexts, graphics can be seen in every aspect of using a computer and it is needed as long as somebody is staring at a screen. Now, let's pretend that it is the mid-1980s and Python 3 apparently existed at that time. You are just hired for an entry-level programmer position at a firm who is at the forefront of research for 2D computer graphics. In your first few weeks, you are tasked together with fellow new co-workers to create a system that draws certain shapes on the screen. They are not yet interested in adding fill colors or having the ability to change the stroke width, but they are interested in drawing "primitive" shapes, such as ellipses, triangles, and quadrilaterals onto some "canvas" on the screen. The task is a tall order, so for now, it is alright for them to treat the canvas as a bag of shapes so that the total area and perimeter is the sum of all of these individual properties of the shapes. Hence, the position of the shapes are not important For the task, you need to first implement the following classes. These classes form the foundation of our system. Shape - generic shape . Point - 2D point Vector2D - 2D vector Polygon - general convex and closed polygon BagOfShapes - bag of shapes Since you are working with a team, you are also tasked to implement one of the following classes of Shapes: Quad - quadrilateral Triangle - triangle Ellipse - ellipse You are told by your supervisor to check this internal form to determine the specifications for the foundational classes and which of the Shape classes you are going to implement. As this is apparently also an internal coding test launched by your firm, your assigned problem statement includes a password that you have to supply as a global variable test_pass in your code. 3. Ellipse Shape Make a class Shape that represents a shape in our canvas. It should have the following properties, which can be initialized from_init__(**kwargs): area - float; area of shape; default to zero perimeter - float; perimeter of shape; default to zero name - string; name of shape; default to "shape" shape_type-string class property; type of shape; default to "shape" Printing a Shape should yieldStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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