You will count the eggs of a female cockroach, find the adults that you expect, and follow the length of a nymph through its moults.
The idea. The eggs are the oothecae times the eggs in each. A nymph grows by a factor at every moult.
Your tasks.
eggs. It gives the eggs laid, from the number of oothecae and the eggs in each.adults. It gives the number of adults that you expect, from the eggs and the share that survive as a fraction.moults_to. It gives the number of moults needed for the length to go above a 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…