This will be in python using visual studio. if you need more information just let me know
Fantastic news! We've Found the answer you've been seeking!
Question:
This will be in python using visual studio. if you need more information just let me know
Thank you so much
Transcribed Image Text:
Task 1: Rectangle and Ellipse Learning Objectives This task is focused on the following 1 learning objective: Implement simple classes in Python with several instance attributes and methods. (LO1) Task Overview You will achieve the learning objectives mentioned above by performing the following 10 activities: Declare a class named Geometric Shape in the geometric_shapes.py file. (LO1) . Implement the init__ method of the GeometricShape class with the name parameter. (L01) Declare a class named Rectangle in the geometric_shapes.py file. (L01) . Implement the _init____ method of the Rectangle class with the length and width parameters. (L01) Implement the get_perimeter method for the Rectangle class. (L01) Implement the get_area method for the Rectangle class. (L01) Declare a class named Ellipse in the geometric_shapes.py file. (LO1) Implement the _init____ method of the Ellipse class with the semi_major_axis and semi_minor_axis parameters. (L01) Implement the get_perimeter method for the Ellipse class. (L01) Implement the get_area method for the Ellipse class. (L01) . Steps to Complete Start your work by creating a new geometric_shapes.py file in your handout directory. The first task is to implement the foundations (boilerplate) for the following three classes: GeometricShape: This class represents the abstract concept of an arbitrary geometric shape. Rectangle : This class represents a rectangle as a special case of a geometric shape. The rectangle is defined by its width and length. Ellipse: This class represents an ellipse as a special case of a geometric shape. The ellipse is defined by its semi-major axis and semi-minor axis. Task 1: Rectangle and Ellipse Learning Objectives This task is focused on the following 1 learning objective: Implement simple classes in Python with several instance attributes and methods. (LO1) Task Overview You will achieve the learning objectives mentioned above by performing the following 10 activities: Declare a class named Geometric Shape in the geometric_shapes.py file. (LO1) . Implement the init__ method of the GeometricShape class with the name parameter. (L01) Declare a class named Rectangle in the geometric_shapes.py file. (L01) . Implement the _init____ method of the Rectangle class with the length and width parameters. (L01) Implement the get_perimeter method for the Rectangle class. (L01) Implement the get_area method for the Rectangle class. (L01) Declare a class named Ellipse in the geometric_shapes.py file. (LO1) Implement the _init____ method of the Ellipse class with the semi_major_axis and semi_minor_axis parameters. (L01) Implement the get_perimeter method for the Ellipse class. (L01) Implement the get_area method for the Ellipse class. (L01) . Steps to Complete Start your work by creating a new geometric_shapes.py file in your handout directory. The first task is to implement the foundations (boilerplate) for the following three classes: GeometricShape: This class represents the abstract concept of an arbitrary geometric shape. Rectangle : This class represents a rectangle as a special case of a geometric shape. The rectangle is defined by its width and length. Ellipse: This class represents an ellipse as a special case of a geometric shape. The ellipse is defined by its semi-major axis and semi-minor axis.
Expert Answer:
Related Book For
Fundamentals of Financial Accounting
ISBN: 978-1259269868
5th Canadian edition
Authors: Fred Phillips, Robert Libby, Patricia Libby, Brandy Mackintosh
Posted Date:
Students also viewed these programming questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Read the following article and answer the questions below: Building Competitive Advantage Through People Magazine: Winter 2002Research Feature January 15, 2002 Reading Time: 23 min Christopher A....
-
1Describe in a simplified manner the flow of information from gene to protein
-
Bullen Inc. acquired 100% of the voting common stock of Vicker Inc. on January 1, 2011. The book value and fair value of Vicker's accounts on that date (prior to creating the combination) follow,...
-
With no government action to control pollution, what is the quantity of electricity produced, the price of electricity, and the marginal external cost of the pollution generated? The first two...
-
The probabilities that a TV station will receive \(0,1,2,3, \ldots, 8\) or at least 9 complaints after showing a controversial program are, respectively,...
-
Budgeting information Consider a company that sells prescription drugs. It has salespeople who visit doctors and hospitals to encourage physicians to prescribe its drugs. The company sells to...
-
Evaluate logz (+)
-
Choose the exact meaning of idiom/phrase- To be in a fix. Options: 1) To be in a difficult situation. 2) To be unable to move. 3) To attain permanence. 4) To feel happy
-
A small company wishes to setup a fund that can be used for technology purchases over thenext6years. Their forecast is for \($12\),000 to be needed at the end of year 1, decreasing by \($2\),000 each...
-
What uniform series over the interval [1,8] will be equivalent to a uniform series of $10,000 cash flows over the interval [3,10] based on a. a 6 percent annual compound interest rate? b. a 10...
-
A person you trust asks you to loan them \($2\),000 at the end of year 1, \($1\),000 at the end of year 2, nothing in year 3, and then they will pay you \($1\),000 in year 4, \($2\),000 in year 5,...
-
How much money can be withdrawn at the end of 15 years if a. $ 2 $ 2 ,000 is deposited at the end of each year and earns 5 percent/year compounded annually? b. $ 3 $ 3 ,000 is deposited at the end of...
-
Fishing Designs has arranged to borrow \($15\),000 today at 12 percent interest. The loan is to be repaid with end-of-year payments of \($3\),000 at the end of years 1 through 4. At the end of year...
-
You have just become the new head of your department. Upon arriving to move into your new office, you find a memo on your desk. You have your first assignment. You have been asked to develop a...
-
Classify each of the following activities as proper or prohibited under the various consumer statutes you have studied. a. Calling a hospital room to talk to a debtor who is a patient there. b....
-
A condensed income statement for Northwest Airlines and a partially completed vertical analysis are presented below. Required: 1. Complete the vertical analysis by computing each line item from (a)...
-
Prepare journal entries to record the transactions that follow. a. Mortell Limited disposed of two computers at the end of their useful lives. The computers had cost $4,800 and their Accumulated...
-
Simko Company issued $600,000 of ten-year, 5 percent bonds on January 1, 2017. The bonds were issued for $580,000. Interest is payable annually on December 31. Using straight-line amortization,...
-
A \(0.010-\mathrm{kg}\) bullet is fired from a \(5.0-\mathrm{kg}\) gun with a muzzle velocity of \(250 \mathrm{~m} / \mathrm{s}\). (a) While the bullet is traveling in the barrel, what is the ratio...
-
A \(1500-\mathrm{kg}\) car going at \(6.32 \mathrm{~m} / \mathrm{s}\) collides with a \(3000-\mathrm{kg}\) truck at rest. If the collision is totally inelastic and takes place over an interval of...
-
On a low-friction track, a \(0.66-\mathrm{kg}\) cart initially going at \(1.85 \mathrm{~m} / \mathrm{s}\) to the right collides with a cart of unknown inertia initially going at \(2.17 \mathrm{~m} /...
Study smarter with the SolutionInn App