I don't know how the ones teaching minors keep their jobs. Well, I remember a few teachers cussing a lot and others saying weird crap like they were indoctrinating us. Anyway, as for university professors, they can cuss, but I think it lowers respect for them.
Maybe at a higher high school level or college is somewhat fine, but anything lesser should be grounds for firing someone. Kids need to be old enough to understand how to use such language first.