Explore BrainMass

Explore BrainMass

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

    This content was COPIED from BrainMass.com - View the original, and get the already-completed 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 March 4, 2021, 6:03 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.49

    ADVERTISEMENT