对以下句子进行语法纠正并改写得更加流畅。
The teacher demanded that all of her students needs to turn in their assignments by Friday.
The teacher demanded that all of her students need to turn in their assignments by Friday.

改写：

The teacher demanded that all her students submit their assignments by Friday.