Create a geometry application For this exercise you will create a module named 'shapes. py' and a program that uses it. The module will contain two classes: Circle and Rectangle. • Start with the class example (Module 10, part 1b) as a basis for Circle o Add an attribute and getter method for the perimeter (distance around the outside, officially called the circumference). • Write a class named Rectangle to represent a rectangle. The class should contain: o Two attributes that specify the length and the width. These should initially be set when the object is created with __init__. o Setter and getter methods for length and width. o Attributes and getter methods for the area and the perimeter. Then write a main program that will use the module.
+5
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Create a geometry application For this exercise you will create a module named 'shapes. py' and a program that uses it. The module will ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Create a geometry application For this exercise you will create a module named 'shapes. py' and a program that uses it. The module will contain two classes: Circle and Rectangle.