You will write functions for the surface areas of the cone, the cylinder and the hemisphere. Then you will compare four solids and find the one with the largest total surface area.
The idea. The slant height of a cone is . The total surface areas are for the cone, for the cylinder and for the hemisphere.
Your tasks.
slant_height, return .cone_total, return the total surface area of a cone, using slant_height.cylinder_total, return the total surface area of a cylinder.largest to the name in solids with the largest total surface area.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…