You will write four functions for the lesson on climate. One finds the glucose that a plant makes from a mass of carbon dioxide. One finds the volume of oxygen it gives out. One finds the carbon dioxide from burning petrol, which we treat as octane. One finds how many trees take up that carbon dioxide in a year.
The idea. Photosynthesis is . Octane has , burns by and one dm³ of petrol has a mass of .
Your tasks.
glucose_from_co2(mass), in grams.oxygen_volume(mass), in dm³ at r.t.p.co2_from_petrol(litres), in kg.trees_needed(litres, per_tree), where per_tree is the kg of carbon dioxide that one tree takes up in a year.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…