Air enters a compressor steadily at the ambient conditions of 100kPa and 20 degrees celcius and leaves at 900 kPa. Heat is lost from the compressor in the amount of 150kJ/kg and the air experiences an entropy decrease of 0.50kJ/kg*K. Using constant specific heats, determine

(a) air exit temperature,

(b) work input to the compressor, and

(c) entropy generation during the process.