One mole of an ideal gas with heat capacity at constant pressure undergoes the process where and are constants. Find: (a) heat capacity of the gas as a function of its volume; (b) the amount of heat transferred to the gas, if its volume increased from to .