For the condensed version, use the noble gas from the row above. Valence electrons are the electrons in the s and p orbitals, as those will have the highest energies (based on higher numbers in front of the letters). The order of orbitals is 1s22s22p63s23p64s23d104p65s24d105p66s24f145d106p67s25f147p6
a) Pt : [Xe]6s24f145d8, 2 valence
b) U : [Rn]7s25f4, 2 valence
c) I : [Kr]5s24d105p5, 7 valence