Answer
Simplest formula: $CH_4N$
Molecular formula: $C_2H_8N_2$
Work Step by Step
Step 1: Calculate the mass of carbon in $CO_2$
$4.839g~CO_2 \times \frac{12g~C}{44g~CO_2} = 1.31973g~Carbon$
Step 2: Calculate the mass of hydrogen in $H_2 O$
$3.959g~H_2O \times \frac{2g ~H}{18g~H_2O} = 0.439889g ~Hydrogen$
Step 3: Calculate the mass of nitrogen
3.302 - (1.31973 + 0.439889) = 1.5424g nitrogen
Step 4: Calculate the moles of each element
mole of Carbon: $\frac{1.31973}{12.01} = 0.10989 mole$
mole of Hydrogen: $\frac{0.439889}{1.007} = 0.43683 mole$
mole of nitrogen: $\frac{1.542381}{14.01} = 0.11009 mole$
Step 5: Divide by the smallest number of moles
Ratio for carbon: $\frac{0.10989}{0.10989} = 1 $
Ratio for Hydrogen: $\frac{0.43683}{0.10989} = 4$
Ration of Nitrogen: $\frac{0.11017}{0.10989} = 1$
Simplest formula: $C H_4 N$
Step 6: Find the molecular formula
Ratio of masses: $\frac{60.10}{30.05} = 2$
Multiply the simplest formula by 2
Molecular formula: $C_2H_8N_2$