Solution :
Given :
Initial temperature of the refrigerant is :
[tex]$T_i=39.37 ^ \circ C$[/tex]
= ( 39.37 + 273 ) K
= 312.3 K
Room which is maintained at constant temperature is :
[tex]$T_o=22 ^ \circ C$[/tex]
= (22+273) K
= 295 K
The thermal energy transferred to the room is :
Q = 400 kJ
= [tex]$400 \times 10^3 \ J$[/tex]
Therefore, the total entropy generation during the thermal energy process is :
[tex]$\Delta S =\left[\frac{-Q}{T_i}+ \frac{+Q}{T_i}\right]$[/tex]
Here, -Q = heat is leaving the system maintained at a temperature of [tex]$T_i$[/tex] K.
+Q = heat is entering the system maintained at a temperature of [tex]$T_o$[/tex] K.
Therefore, substituting the values :
[tex]$\Delta S =\left[\frac{-400\times 10^3}{312.3}+ \frac{400\times 10^3}{295}\right]$[/tex]
= [-1280.8197 + 1355.9322]
= 75.1125 J/K
= 0.0751125 kJ/K
= 0.075 kJ/K