Write a program to solve the following problem. One of the gases listed in Table A.6 undergoes a reversible adiabatic process in a cylinder from P1, T1 to P2. We wish to calculate the final temperature and the work for the process by three methods:
a. Integrating the specific heat equation.
b. Assuming constant specific heat at temperature, T1.
c. Assuming constant specific heat at the average temperature (by iteration).