A fuel with a big share of carbon smokes when the air is short. You will find the share of carbon in some fuels, predict the flame of each, and find the sootiest. Then the program draws the shares.
The idea. Share of carbon . A saturated fuel, with , burns with a clean blue flame in plenty of air. An unsaturated one gives a yellow, sooty flame.
Your tasks.
share, return the percentage of carbon by mass.flame, return "blue" for a saturated fuel and "yellow" otherwise.sootiest, the fuel with the biggest share of carbon.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…