What happens if a student simply switch of the device by pulling the power plug?
I guess the file system will be corrupt at the next start, or after the next student wants to leave this classroom in order to meet his friends between lessons?
On a pc running linux you can press the power button once (short) and it will initiate the required shutdown.
The raspberry pi has no such button and there is no indicator the shutdown/halt is complete if you have no monitor connected.
What can be done to make sure the next lesson in this programming class can start without the need to recover 2-3 filesystems?
Maybe it was too expensive to add a way to shutdown a raspberry without the need to logon as root first, but maintaing filesystems during lessons might upset some teachers and students.

