Nicotine, a compound isolated from tobacco leaves, is found on analysis to have: 74.0% carbon, 8.7% hydrogen, and 17.3% nitrogen. The molecular mass is found to be 162 amu. Calculate the molecular formula for nicotine.