The program holds four salt solutions, each as grams of salt and grams of water. You will make it find the mass by mass percentage of each, the salt needed for of a solution, and how much salt stays undissolved when is stirred into of water at . Then it draws a bar chart of the percentages.
The idea. Mass by mass . At , of salt dissolves in each of water.
Your tasks.
pc, the percentage of salt in each solution.salt_needed, the grams of salt in of a solution.extra, the grams of salt that cannot dissolve when is added to of water.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…