An aluminum alloy is to be used for a driveshaft that transmits 40 hp at 800 rpm. The yield strength of the aluminum alloy is \sigma_{Y} = 37 ksi. If a factor of safety of FS = 3.0 with respect to yielding is required, determine the smallest-diameter shaft that can be selected based on:
(a) the maximum-shear-stress theory.
(b) the maximum-distortion-energy theory.