Consider - an app that replicates this functionality on the phone, but tracks if the user at any point closes the app. This then is reported to the teacher so the teacher knows if there was any cheating.
how about: a standardized test calculator specification, with careful boundaries around what is required, what is permitted and what is not.
Then let competition drive prices and features.