Question: Question 2 : Class By using separating specification from implementation, Make a class for the rectangle that calculates the perimeter and area. then write two

Question 2: Class
By using separating specification from implementation, Make a class for the rectangle that calculates the perimeter and
area. then write two programs(.cpp files). One program has two objects that each of which is a Square and you ask the user
to give you the side. and in another program, you have two rectangle objects and you ask the user to give you the length
and width. then by using the class you defined in a separate file, calculate the area and perimeter. in each program, you
have to define the following:
use the dynamic allocation.
has a default constructor
has a destructor.
use an array of objects for 2 different rectangles/squares
make a UML
you have to upload 3 files as submissions for this assignment. (or you can submit a link to an online compiler such as
"replit" that includes all these 3 files)
class (.h)(just one)
main function (.cpp)(two)
UML(you can submit doc or pdf)(one)
 Question 2: Class By using separating specification from implementation, Make a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!