You will write the decay model of a heap of leaf litter, its half-life, and the first whole year in which the litter falls below a target mass.
The idea. The mass left is . The half-life is , or .
Your tasks.
mass_left. It gives the mass after t years.half_life. It gives the half-life in years.years_until. It gives the first whole year in which the mass is at or below the target.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…