What are the steps to figure out the empirical formula when using grams vs. percentages?

A) Convert grams to percentages and use stoichiometric calculations
B) Convert percentages to grams and use the molar mass of the compound
C) Convert grams to moles and use the Avogadro's number
D) Convert percentages to moles and use the molecular weight of the compound