Write a program for Problem 3.163, where the initial state, the volume ratio, and the polytropic exponent are input variables. To simplify the formulation, use constant specific heat.
Problem 3.163
A piston/cylinder assembly in a car contains 0.2 L of air at 90 kPa and 20?C, as shown in Fig. P3.163. The air is compressed in a quasi-equilibrium polytropic process with polytropic exponent n = 1.25 to a final volume six times smaller. Determine the final pressure and temperature, and the heat transfer for the process.