Discuss the below in detail:
Q: A cylinder fitted with a piston contains air at 400 K, 1.0 MPa, at which point the volume is 100 L. The air now expands to a final state at 300 K, 200 kPa, and during the process the cylinder receives heat transfer from a heat source at 400 K. The work done by the air is 70% of what the work would have been for a reversible polytropic process between the same initial and final states. Calculate the heat transfer and the net entropy change for the process.