// NAME CSCI 201 Assignment 5 DATE // prog.cpp program used to test the rectangle class. #include #include "rectangle.h" int main() { Rectangle box1(2,2,2,2), box2; cout << "A box with width " << box1.GetWidth() << " and height " << box1.GetHeight() << endl; cout << "has area: " << box1.Area() << " and perimeter: " << box1.Perimeter() << ". It's shape is:" << endl; box1.Display(); cout << "A box with width " << box2.GetWidth() << " and height " << box2.GetHeight() << endl; cout << "has area: " << box2.Area() << " and perimeter: " << box2.Perimeter() << ". It's shape is:" << endl; box2.Display(); box1.SetWidth(3); box1.SetHeight(5); cout << "A box with width " << box1.GetWidth() << " and height " << box1.GetHeight() << endl; cout << "has area: " << box1.Area() << " and perimeter: " << box1.Perimeter() << ". It's shape is:" << endl; box1.Display(); box2.SetWidth(4); box2.SetHeight(6); cout << "A box with width " << box2.GetWidth() << " and height " << box2.GetHeight() << endl; cout << "has area: " << box2.Area() << " and perimeter: " << box2.Perimeter() << ". It's shape is:" << endl; box2.Display(); return 0; }