Higher sales and cost-cutting generate $2 billion in earnings in the third quarter. The automaker is on track to have its first full-year profit since 2004 as it prepares for a public offering next week.As it prepares for a public offering this month, General Motors Co. posted its third consecutive profitable quarter Wednesday and is on track to have its first full-year profit since 2004.