You will write the volume of a frustum by the formula and as a big cone minus a small cone. Then you will turn the volume into litres and count how many buckets fill a drum.
The idea. The volume is . It also equals the volume of the complete cone minus the volume of the cone cut off.
Your tasks.
volume, return the volume of the frustum by the formula.volume_by_cones, return the volume as the complete cone minus the small cone.litres, return the capacity of the frustum in litres, for measurements in centimetres.buckets_to_fill, return the whole number of full buckets needed to fill a drum with a volume of drum cubic centimetres. Round up.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…