Question: Please answer this. need this urgently! Task-1: Recently, you have completed dynamic memory allocation and class & objects concepts in your Data Structure Lab course.

 Please answer this. need this urgently! Task-1: Recently, you have completed

Please answer this. need this urgently!

Task-1: Recently, you have completed dynamic memory allocation and class \& objects concepts in your Data Structure Lab course. You have to complete the following tasks for the given UML diagram. [Hint: For a Rectangle, Area =w1 and Perimeter =2(w+1)] (a) Convert the UML diagram into codes (Rectangle.h, Rectangle.cpp). [5] (b) Write down a driver file (main.cpp) to test your program that creates two instances of the Rectangle class by user input values. You must show the sample outputs using the print method. [5]

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!