Hello, Omran,
We need to start with a balanced equation. The combustion of hexane is slightly more challenging, since although we can start with one molecule of C4H10 and one molecule of O2, to see what happens, we find that the two products, CO2 and H2O require that we have more than two oxygen atoms. We need three O atoms, but since oxygen can only exist in a diatomic state, as we increase the O2 number we run out of C or H atoms. So we need to increase the C4H10 coefficient by at least 1. It winds up taking 2 molecules of butane before we have a "legally" balanced equation:
2C4H10 + 13O2 = 8CO2 + 10H2O
From this we can see that we form 8 moles of CO2 for every 4 moles C4H10. Next, calculate how many moles of C4H10 we have in 100 grams of the compound. We need the molar masses of both the butane and carbon dioxide (I used 58.1 and 44.0 g/mole, respectively). We have 100g/(58.1g/mole) = 1.72 moles of butane.
Multiply the moles of butane by the molar ratio of CO2/C4H10 (4) to find out many moles of CO2 are produced. If all the butane is combusted (we have plenty of O2), we'll produce 6.88 moles of CO2. Convert that to grams using the molar mass of CO2. (6.88moles CO2)*(44.0g CO2/mole CO2) = 303 grams CO2.
Fun, but a waste of butane and we add to global warming.
I hope this helps,
Bob