Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Rahul's function prints the wrong limiting reagent for with mol of nitrogen and mol of hydrogen:
What does it print, what is wrong, and what is the right answer? How many moles of ammonia form?
Rounds of the equation for a reactant . The smallest is the extent, and its reactant is limiting. Products: extent coefficient. Excess left: moles extent coefficient. Percent yield . At STP a mole of gas fills .
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. What it prints. It multiplies: nitrogen , hydrogen . The smaller is nitrogen, so it prints N2.
Step 2. The bug. Rounds are moles divided by the coefficient: moles[s] / coef[s].
Step 3. Right answer. Nitrogen gives rounds, hydrogen . Hydrogen is limiting, and the extent is .
Step 4. Ammonia. mol.
Answer: it prints N2, but hydrogen is limiting; mol of ammonia forms.
Log in to join the discussion.
Loading…