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 : Class
By using separating specification from implementation, Make a class for the rectangle that calculates the perimeter and
area. then write two programscpp 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 different rectanglessquares
make a UML
you have to upload files as submissions for this assignment. or you can submit a link to an online compiler such as
"replit" that includes all these files
class hjust one
main function cpptwo
UMLyou can submit doc or pdfone
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
