Question: Give the ADT for a rectangleData, The data include, length and width of rectangle. Your class must include at least the following functions: print -

 Give the ADT for a rectangleData, The data include, length and

Give the ADT for a rectangleData, The data include, length and width of rectangle. Your class must include at least the following functions: print - displays length, width, area, and perimeter form Rectangle Length = length; Rectangle Width = width, Rectangle Area = area; Rectangle Perimeter = perimeter. Calculate area (length times width). Calculate perimeter (2 times length plus width), setLengthWidth. Implement rectangleData h, rectangleData.cpp Use the following, main to test your program. #include using namespace std; int main() {rectangleData bigRect(14, 10); bigRect.calculateArea(); bigRect.calculatePerimeter(); bigRect.print(); cout

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!