Question: c++ Problem 2 (30 points: File: rectangle.cpp (class declaration, implementation and main in one.cpp file) Write Rectangle class, with proper member data and member functions.
Problem 2 (30 points: File: rectangle.cpp (class declaration, implementation and main in one.cpp file) 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 perimeter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
