Question: You are requested to write a python program that does the following: a. Write a Rectangle class in Python language, allowing you to build a
You are requested to write a python program that does the following: a. Write a Rectangle class in Python language, allowing you to build a rectangle with length and width attributes. b. Create a Perimeter() method to calculate the perimeter of the rectangle c. Create an Area() method to calculate the area of the rectangle. d. Create a method display() that display the length, width, perimeter, and area of an object created using an instantiation on rectangle class. N.B: Perimeter =2( length + width ), Area =( length " width )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
