You will write four functions for the first two lessons. One finds the carbon dioxide from the complete combustion of methane. One finds the carbon monoxide if all of the methane burns incompletely. One finds the calcium oxide that a scrubber needs. One works out what a catalytic converter makes from two gas volumes.
The idea. Methane has . Carbon dioxide has and carbon monoxide has . The scrubber reaction is , with of and . The converter reaction is , and the gas volumes are in the ratio of the moles.
Your tasks.
co2_from_methane(mass), in grams.co_from_methane(mass), in grams, when all of it makes carbon monoxide.cao_for_so2(tonnes), in tonnes.converter(co, no), which gives the pair (volume of carbon dioxide, volume of nitrogen).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…