Air flows through a device, with conditions of P=1 bar, T=650K, and V=800 m/s at one end, and conditions of P=4 bar, T=960 K, and V=5 m/s at the other end. 60 kW of heat is lost to the surroundings at the 960 K end, and the mass flow is 1 kg/s. We do not know which end is the inlet or the outlet. Determine if this device is consuming or generating work? How much? Also determine the entropy change for the flowing air and comment on its value and sign.