The internal energy of a diatomic gas is given by:
\[
U = \frac{5}{2} n R T
\]
where:
- \( n = 4 \) (number of moles),
- \( R = 8.31 \, \text{J mol}^{-1} \text{K}^{-1} \) (universal gas constant),
- \( T = 27 + 273 = 300 \) K (temperature in Kelvin).
\[
U = \frac{5}{2} \times 4 \times 8.31 \times 300
\]
\[
U = 24.93 \, \text{kJ}
\]