Write a program to solve a problem similar to Problem 6.103, but instead of the ideal gas tables, use the formula for the specific heat as a function of temperature in Table A.6.

Problem 6.103
A cylinder/piston contains 1 kg methane gas at 100 kPa, 300 K. The gas is compressed reversibly to a pressure of 800 kPa. Calculate the work required if the process is adiabatic.