When you have a covalent compound with one of the elements: C, O, N, S, and P, I realize that a double bond can be formed. However, how do you know whether a double bond should be formed or lone pairs should be placed on the central atom. I frequently experience this problem with nitrogen and oxygen compounds such as: NO2-, NO2, and NO2+.
So, is their a rule to determine whether to make a double/triple bond or put the central atoms on the central atom? Like in CO2, there are two double bonds. There could be 1 double bond, 1 single bond, and 6 electrons dots on one oxygen and 4 on the other. The Carbon would have 2 dots, then.