Write a program to study a general polytropic process in an ideal gas with constant specific heat. Take Problem 6.110 as an example.
Problem 6.110
Helium in a piston/cylinder at 20?C, 100 kPa is brought to 400 K in a reversible polytropic process with exponent n = 1.25. You may assume that helium is an ideal gas with constant specific heat. Find the final pressure and both the specific heat transfer and the specific work.