How do you assign oxidation states for each atom in the following compounds?

1. KMnO4
2. NiO2
3. Na4Fe(OH)6
4. (NH4)2HPO4
5. C6H12O6

4 answers

http://www.chemteam.info/Redox/Redox-Rules.html
1. K is always +1
O is -2
To find the state of Mn, you add K and O together as following:
4x(-2)+1+?(Mn)=0
-7+ ?(Mn)=0
Mn=+7

I hope this will help you solve the rest of the problems. If not, ask me and I will gladly try to explain it better.
Example #2.
O=-2
2x(-2)+?Ni=0
-4+?Ni=0
Ni=+4

Thought I as well do one more (:
fe=6