Question: (28%) Write a C# class RectEZ which is similar to the easy class Rectangle as Deitel specified in their exercise 10.3 on page 401. (10%)
- (28%) Write a C# class RectEZ which is similar to the easy class Rectangle as Deitel specified in their exercise 10.3 on page 401.
- (10%) With attributes length and width, each of which defaults to 1, write methods or properties for length and width. Write methods Perimeter and Area that compute the perimeter (sum of 4 sides) and area (product of length and width).
- (8%) Make sure length and width are positive numbers.
- (10%) Instantiate >= 5 rectangles with different length and width attributes. Sort them in order of increasing perimeter and then also in order of increasing area. Make sure you have method to print out each rectangle.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
