Question: Write a computer program to determine the height and base width (feet or meters) of the triangular spoil bank that will result from a rectangular trench excavation. Input should include the ditch width and depth (feet or meters) as well as the soil's angle of repose (degrees) and swell (%). Solve Problem using your program.
Problem: A rectangular ditch having a cross-sectional area of 24 sq ft (2.2 m2) is being excavated in clay. The soil's angle of repose is 35° and its swell is 30%. Find the height and width of the triangular spoil bank that will result from the trench excavation.