A model says that a fraction of the living bollworm larvae dies each day on Bt cotton. You will count the survivors, find how long it takes to bring the larvae below a limit, and look up the gene for a pest.
The idea. If a fraction of the larvae die each day, a fraction live. After days, remain.
Your tasks.
survivors. It gives the number of larvae that live after days days.days_below. It gives the first day on which the number falls below limit.gene_for. It gives the cry gene for the cotton bollworm, or "none" for any other pest.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…