A fermentation makes ethanol from sugar, and a still makes a stronger spirit from the broth. You will write the sums and use them for a batch of wine and a batch of spirit.
The idea. From each gram of glucose, at best, g of ethanol is made. Ethanol has a density of g per mL.
Your tasks.
ethanol_g. It gives the grams of ethanol made in a litre of juice.strength. It gives the strength of the drink in per cent by volume, for a litre.spirit_ml. It gives the millilitres of spirit made from a broth, when a share of the ethanol is collected.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…