Step 1: Calculate the number of moles of hydrogen.
The molar mass of hydrogen is 1 g/mol, so 0.5 g corresponds to 0.5 moles of \( H_2 \).
Step 2: Calculate the maximum electrical work using the formula.
The work done by the cell is given by:
\[
W = n F E
\]
where \( n \) is the number of moles of electrons, \( F \) is the Faraday constant, and \( E \) is the cell potential. The maximum work comes out to be \( -1.25 \times 10^6 \, \text{J} \).
Final Answer:
\[
\boxed{-1.25 \times 10^6 \, \text{J}}
\]