Iron nails are kept in four conditions, and the rust on each is weighed every two days. You will make the program find the average rate of rusting in each condition, the condition that rusts fastest, and the ones where almost no rust forms. Then it draws all four.
The idea. Iron rusts only with both air and water, and salt makes it faster. The average rate is the rust gained divided by the time taken.
Your tasks.
rates with the average rate for each condition, in mg per day.fastest, the condition with the biggest rate.no_rust with the conditions whose final rust is less than .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…