Given:
Potential difference, V=8 V
No. of electrons, n=5×1020
Magnitude of charge on an electron, e=1.6×10−19 C
So total charge that has to be moved is:
Q=ne
Q=5×1020×1.6×10−19 C
Q=80 C
Work done in moving this amount of charge,
W=VQ
W=8 V×80 C
W=640 J