Question: Please help with the answers. Need the code output screenshot too. It's urgently needed. Thanks for the answer! 5. Design a class named Rectangle that

Please help with the answers. Need the code output screenshot too. It's urgently needed. Thanks for the answer!
5. Design a class named Rectangle that supports class template and contains: - Two private properties: length and width - A no-arg constructor that creates a default Rectangle - A constructor that creates a Rectangle with the specified property values - The accessor and mutator methods for all properties - A method named print ) that shows all the properties - A method named getArea() that returns the area of a Rectangle - A method named getPerimeter() that returns the perimeter of a Rectangle (a) Draw a UML diagram based on the given case study. (b) Convert the UML diagram into codes (Rectangle.h, Rectangle.cpp) (c) Write down a test program (main.cpp) that creates two instances of Rectangle class for int and double data types respectively. Then print the properties, area and perimeter for each instance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
