NYMEX Gasoline Oct. futures settle at $3.4875 a gallon