//this is a simple client program that tests the box class #include #include "Box.h" using namespace std; int main() { double boxWidth; //used to input the dimensions of a box double boxLength; double boxHeight; // Get the width, length, and height from the user interactively // I am not using files at this point. The example needs to be kept simple. cout << "Enter the dimensions of a box:\n"; cout << "Width: "; cin >> boxWidth; cout << "Length: "; cin >> boxLength; cout << "Height: "; cin >> boxHeight; // Define (instantiate) a Box object with these specific inputs Box myBox(boxWidth, boxLength, boxHeight); // Display the Box object's properties to show the object exists cout << "Here are the box's properties:\n"; cout << "Width: " << myBox.getWidth() << endl; cout << "Length: " << myBox.getLength() << endl; cout << "Height: " << myBox.getHeight() << endl; cout << "Base area: " << myBox.getArea() << endl; cout << "Volume: " << myBox.getVolume() << endl; Box myBox2; //object uses default values cout << "Here are the seond box's properties:\n"; cout << "Width: " << myBox2.getWidth() << endl; cout << "Length: " << myBox2.getLength() << endl; cout << "Height: " << myBox2.getHeight() << endl; cout << "Base area: " << myBox2.getArea() << endl; cout << "Volume: " << myBox2.getVolume() << endl; return 0; }