6. The region bounded by y=cosx, 0≤x≤π/2; and the line y=k, 0≤k≤1, is revolved about the line y =k, generating a solid S. Determine k so that S has (a) maximum volume and (b) minimum volume. (10%)