Teacher Accused of Cussing at Class Resigns