Question: Write Rectangle class, with proper member data and member functions. Write a program that dynamically allocates an array of Rectangle objects after asking the user
Write Rectangle class, with proper member data and member functions. Write a program that dynamically allocates an array of Rectangle objects after asking the user about the number of rectangles. Initialize each rectangle from the user. Find the largest rectangle in the array first on the basis of area and then on the basis of the perimeter.
Step by Step Solution
3.46 Rating (149 Votes )
There are 3 Steps involved in it
To solve this problem we will create a Rectangle class with appropriate member variables and member functions Well then proceed to write a program tha... View full answer
Get step-by-step solutions from verified subject matter experts
