Air at temperature 527oC and pressure 30 atmospheres is admitted into the cylinder of an…