The total work done in charging the capacitor (C) from the uncharged state to the final charge q will be equal to energy stored in the capacitor, given by U=21Cq2=21CV2
Where q=CV and V is potential difference.
Given, C=6×10−6F, V=100 volt ∴U=21×6×10−6×(100)2 =3×10−2J U=0.03J
Note: This energy resides in the electric field created between the plates of the charged capacitor.