Another way to say "Having projects prevents boredom." is "Boredom can be alleviated by having assignments"