How do I work out the number of bonding pairs AND lone pairs around the central atom in the molecule.
I have a certain rule for when its single bonds (e.g. NH3):
Identify the central atom bonded to all other atoms.
Find the number of outer shell electrons of the central atom using its group number.
Add one electron for each bonded atom.
If the species is an ion, add one electron for each negative charge or subtract one electron for each positive charge.
Divide the total number of electrons by two to get the number of electron pairs.
Subtract the number of bonds from the number of electron pairs to determine the number of lone pairs.
This works all fine for single bonds but for >double bonds it doesn't work, e.g. CO2, using this rule apparently carbon has 2 bonding pairs and one lone pair (but obviously it has 2 bonding pairs ONLY). So first of all how do I tell whn there a double bonds and how to work out how many bonding pairs and lone pairs surrounding the atom