Air enters a compressor steadily at the ambient conditions of 100 kPa and 22°C and leaves at 800 kPa. Heat is lost from the compressor in the amount of 120 kJ/kg and the air experiences an entropy decrease of 0.40 kJ/kg K. Using constant specific heats, determine
(a) the exit temperature of the air,
(b) the work input to the compressor, and
(c) the entropy generation during this process.