1) Is it okay to earn money by writing school assignments for other students? Would money earned this way be considered halal?

2) What about earning by working as a tutor on sites that help students with their assignments and assignment related questions globally? (Such as coursehero.com)

1) No. It is not okay, because it is cheating.

2) If it is about showing them how to do the job, then it is OK