Writing these kinds of assignments is hard, however. I find it difficult to come up with something that is both wrong enough to be instructive and non-obvious, as well as reasonable enough that someone might have written the code in the first place.
More power to the OP if he's able to write entire, semester-long curricula based on these sorts of assignments.
More power to the OP if he's able to write entire, semester-long curricula based on these sorts of assignments.