Analysts were expecting a profit of 30 cents a share for the third quarter and $ 1.31 a share for the full year .