A store holds tonnes of grain. An untreated store loses of the grain that is left each month. A store that is cleaned, dried and fumigated loses each month. You will follow the untreated store for six months, find when it has lost more than tonnes, and find how much grain the treatment saves.
The idea. Each month the grain is multiplied by the share that is not lost.
Your tasks.
untreated to the list of tonnes left in the untreated store at the end of each of the six months, each rounded to 2 decimal places.first_bad to the first month in which less than tonnes are left.saved to the tonnes saved by the treatment after six months, rounded to 2 decimal places. Use the last number of untreated for the untreated store.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…