One kg mole of an ideal gas is compressed isothermally at 127°Cfrom 1 atm to 10 atm in a piston-and-cylinder arrangement.Calculate the entropy change of the gas, the entropy change of thesurroundings, and the total energy change resulting from theprocess, if: (a) the process is mechanically reversible and thesurroundings consist of a heat reservoir at 127°C. (b) the processis mechanically reversible and the surroundings consist of a heatreservoir at 27°C. (c) the process is mechanically irreversible,requiring 20% more work than the mechanically reversiblecompression, and the surroundings consist of a heat reservoir at27°C.