Explore BrainMass
Share

Find all possible lengths, widths & heights of a given volume of a prism

This content was STOLEN from BrainMass.com - View the original, and get the solution, here!

I need to know how to find all possible lengths, widths & heights of a given volume of a rectangular prism. I'm writing a program in Java that takes the user inputted volume of a rectangular prism and then tells the user all of the possible lengths, widths & heights are for that given volume. I just don't know the calculations to do that so I can write an algorithm for this problem. I just need to know how to do the problem, not write the program.

© BrainMass Inc. brainmass.com September 18, 2018, 7:16 pm ad1c9bdddf - https://brainmass.com/math/geometry-and-topology/find-all-possible-lengths-widths-heights-of-a-given-volume-of-a-prism-26489

Attachments

Solution Preview

A rectangular prism is essentially a cuboid, whose Volume is gives an
V = lwh, where
l = length, w = width, h = height (In this case, all need to be integers)
Note that, if you fix two of the ...

$2.19