Air is compressed in a piston-cylinder assembly from 10 psia, 500 R to a final volume of 1 ft^3. The process is polytropic with n = 1.25. The mass of the air in the cylinder is 0.5 lbm. Assuming that the air properties can be modeled using the ideal gas law, determine the work and heat transfer (both in Btu).