Ryan G. answered 10/31/20
Math, physics and astronomy tutor
So the total cost will be the area x the cost per area. For this particular shed, the total area for the semi circular ends is 1/2 * pi * r2 + 1/2 * pi * r2 = pi * r2 sq. ft. For the curved portion, the area is pi * r * h (recall that the area for the whole cylinder is 2 * pi * r * h).
The total cost of the shed is:
C = 14 * pi * r2 + 8 * pi * r * h
We need it as a function of r only. Use the volume info to get h in terms of r.
The volume of a cylinder is pi * r2 * h. We need half that so the second equation is:
400 = 1/2 * pi * r2 * h
Solve for h: h = 800/(pi * r2)
insert this back into the first equation,
C(r) = 14 * pi * r2 + 8 * pi * r * 800/(pi * r2) = 14 * pi * r2 + 6400/r

Ryan G.
There was an error that I fixed. Sorry 'bout that11/02/20