The power dissipated in the resistor is calculated using the formula:
\[
P = I_{\text{rms}}^2 R
\]
Where \( I_{\text{rms}} \) is the RMS value of the current and \( R \) is the resistance.
By analyzing the current waveform, we find the RMS value of the current \( I_{\text{rms}} = 9A \).
Using \( R = 20 \, \Omega \), the power is:
\[
P = (9)^2 \times 20 = 540W
\]
Thus, the correct answer is option (2).