A diatomic ideal gas is heated at constant volume till pressure is doubled again heated at constant pressure till its volume is become doubled. The average molar heat capacity for whole process is