Write a program that may be used to calculate the maximum bending stress and the maximum horizontal shear stress for a simply supported single-span timber beam that carries a uniformly distributed load.
User input is to be uniformly distributed load intensity, span, and the nominal dimensions of the cross section. (Use nominal dimensions for the calculations and assume a unit weight for the timber of 35 pcf.)