Final answer:
The compound contains 80.0 g of carbon and 20.0 g of hydrogen. The empirical formula is CH₃ and the molecular formula is C₂H₆.
Step-by-step explanation:
To determine the grams of each element in a compound, we assume a 100 g sample. From the given percentages, we have 80.0 g of carbon and 20.0 g of hydrogen.
To find the moles of each element, we convert the grams to moles using the molar mass of carbon (12.01 g/mol) and hydrogen (1.01 g/mol). This gives us 6.66 moles of carbon and 19.80 moles of hydrogen.
The mole ratio of carbon to hydrogen is 1:3, so the empirical formula of the compound is CH₃.
To find the molecular formula, we need the molar mass. Given that the molar mass is 30.069 g/mol, we divide it by the empirical mass of CH₃ (14.03 g/mol) to get a molecular formula of C₂H₆.