2.998e^8 is how I would write it. If you want it with the least amount of decimals, use 3e^8
You must first calculate the total weight of 1 mole of the substance. You do this by finding the molar weights on the periodic table of each of the elements in the compound:

So now we take the amount of each element that is given in the compound and divide it by the total mass of the compound:
Carbon: 96.08g

Carbon = 49.48%
Nitrogen: 56.028g

Nitrogen = 28.85%
Oxygen: 31.998g

Oxygen = 16.48%
You only need a 2 at the end In front of the NaCl