Carbon dioxide flows through a device entering at 300 K, 200 kPa and leaving at 500 K. The process is steady state polytropic with n = 3.8 and heat transfer comes from a 600 K source. Find the specific work, specific heat transfer and the specific entropy generation due to this process.