Consider a general version of Problem 3.144 with a substance listed in Table A.6. Write a program where the initial temperature and pressure and the final temperature are program inputs.
Problem 3.144
A 250-L rigid tank contains methane at 500 K, 1500 kPa. It is now cooled down to 300 K. Find the mass of methane and the heat transfer using
(a) the ideal-gas and
(b) methane tables.