Figure P3 shows a thin-walled cylinder with closed ends that is built in at one end and loaded by a 50 kN force at the other. If the vessel also contains a gas at a pressure of 1 MPa, find the location and magnitude of
(i) the maximum tensile stress, and
(ii) the maximum shear stress.