I have a programming assignment that requires the user to input length, width, height and thickness of an open box. (i.e. 5 sides including the bottom should also have thickness) and figure out how much material is needed to create that box. I am pretty sure I am trying to find the inner volume (L*W*H) and subtract that from the outside volume. I have tried drawing it out and I know it should be trivial, but every time I try to calculate thickness the answer doesn't match up with what it should be. L = 15cm W = 12cm H = 6cm and thickness = 1cm, which should equal 430 cubed cm according to the sample.
I was just wondering if you guys could point me in the right direction, I've tried finding he SA of all the sides and adding them up, I've tried (L+2t)(W+2t)(H+t), and a bunch of other ways, but when I start the subtraction I never end up with the correct answer. I'm just hitting a mental road, I think the bottom thickness is what is throwing me off.
I appreciate any help that is given, thank you.
I was just wondering if you guys could point me in the right direction, I've tried finding he SA of all the sides and adding them up, I've tried (L+2t)(W+2t)(H+t), and a bunch of other ways, but when I start the subtraction I never end up with the correct answer. I'm just hitting a mental road, I think the bottom thickness is what is throwing me off.
I appreciate any help that is given, thank you.