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 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
