An industrial tank (a solid formed by adjoining two hemispheres to the ends of a right circular cylinder) must have a volume of 4000 cubic feet. The hemispherical ends cost twice as much per square foot of surface area as the sides. Find the dimensions that will minimize cost.