Question: State Arkansas:

Parent “A” works full time. Parent “B” is unemployed. “A” and “B” are divorced.

“A” pays $1,000 in child support to “B” monthly. Joint custody, week on week off.

Parent “B” spends $1,000 in the following way: $400 on all monthly household expenses. $600 on monthly rent.

Question: Is Parent “B” allowed to use the child support money to pay for rent? The child only stays in parent “B”’s house half of any month (week on week off). Therefore parent “B” is essentially using $300 to pay for rent while child is not there, and $300 for rent when the child is there. Is this legal?

Also, is parent “B” allowed to use child support money on himself/herself?

If possible are there any links to the official legal sites quoting the law

Answer: 
Various elements could be legal, or not. For example, it is legal to require students to do things in order to pass a class. It is legal to require a student to write a program for a course (entirely, or in part). It is legal for a teacher to give a "group grade".

It is not clear whether it is legal to require the student to assign copyright or license to the teacher / school – it may be legal to require a student to pay for their class, and copyright transfer might be valuable consideration for such a contract (assuming that there is a contractual relation at all as opposed to a statutory mandate – e.g. "high school"). If this is a public school, you can't make students pay for a mandatory class, therefore you cannot require assignment of copyright. It is very probably illegal for the student to access the educational records of other students, but the app could be developed with dummy data.
No.
---

"Forced Labor" is typically a term used to refer to countries that have prison or internment camps where there is no choice in doing the work and trying to choose not to means starvation and beatings.

Where as "paid employment" is a term that can then be compared to "unpaid employment" and in a school setting as "education".

You may wish to study North Korea and China to gain more insight into these practices.