You will write four functions for the calculations of this course. One finds the relative formula mass of an alkene. One finds the relative formula mass of an addition product. One finds the mass of the product from a mass of alkene. One finds a percentage yield.
The idea. The alkene with carbon atoms has . With bromine, hydrogen or steam, the product has , or . One mole of alkene gives one mole of product. The percentage yield is the mass collected divided by the mass that could form, times .
Your tasks.
alkene_mr(n).product_mr(n, reagent) for "bromine", "hydrogen" and "steam".product_mass(mass, n, reagent).percentage_yield(collected, possible).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…