You will write the calculator that a soap maker uses to decide how much alkali to add to a fat.
The idea. One mole of a triglyceride takes three moles of alkali. The saponification value is the milligrams of potassium hydroxide () that one gram of fat needs.
Your tasks.
naoh_needed(fat_g, fat_molar): the grams of sodium hydroxide () that saponify the fat.sap_value(fat_molar): the saponification value in mg of KOH per gram.mean_molar(sap): the mean molar mass of a fat from its saponification value.Run your code once to unlock the worked solution.
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…