I am currently enrolled in a c++ class in my college and this week we have a difficult assignment (for me anyway)
Anyway here is the assignment:
I understand how to get total surface area (2*(l*w), 2*(h*w), 2*(h*l), the sum of those) however I'm confused about how to implement this. I have to use the rectangle class (rect.h file, attached)Assume the length, width, and height of a rectangular box are 3, 4, and 5 inches respectively. Write a C++ program that uses the Rectangle class (in the rect.h header file) to define each side of the box as an object to compute the total surface area of all six sides of the box.
Within the class file only length and width are declared. What can I do to declare height? I have to declare all six sides of the rectangle as an object.
If I were to make an edit to the rect.h file such as add height property wouldnt that throw everything off?