ZnSO4
Mw of ZnSO4=(65.409+32.065+15.9994∗4)==161.4716 g/mol
w of Zn=n∗Mw(ofZn)/Mw(ofZnSO4)∗100%=1∗65.409/161.4716=40.508%
n - number of atoms in compound
The same for other elements in ZnSO4 (for FeCl2,CuO)
It was example how to calculate persent.
But there are some tables which can show you persent of element in compound. The name of that tables is "Percent composition by element"
You can find some tables in this site http://www.convertunits.com/molarmass/ZnSO4


