Unlikely Patrick; you have to create an app that will
- accept an order at 6 am
- save the order information
- log into the food order service web page and make the order at a specific time
- allow payment to the order service (search for monetize using the forum search for possible mechanisms)
- provide error control and confirmation the order is received.
the problems and challenges include:
-
your app needs to be able to log into the Web page that allows people to order. This article might help How to fill out a form of a webpage and click a button using some JavaScript . Will the method allow you to start an order immediately. If it can actually start an order on one of these food services it would demonstrate the log in and order part could be part of your app. If you try and cannot instantiate an order; it probably means you cannot do what you want to do.
-
your app needs to store the request at 6.am and then schedule a log in to the order service. App Inventor 2 apps cannot run in the background (they cannot ordinarily send the order at a scheduled time unless the app is not sleeping). The actual order might be stored in a TinyDB or in the Cloud (Google spreadsheet, FirebaseDB, CloudDB etc.) but the issue is how to create the part that stores the order to actually send the order at a specific time.
Not with App Inventor; whatever you use to make an order at a specific time has to be running 24/7 . Is this impossible? I don't know. You could try to get separate parts of the app to work and if they do, put them together.
A huge issue is scheduling the app to send the order at the correct time. Since App Inventor can not run as a Service (in the background) it would mean that your teacher's device would have to run constantly to be able to send the order at 11 or 12 or whenever (see options for keeping the device from going to sleep ... search for StayAwake routines).
This is my opinion. Try and if you are a moderately competent App Inventor programmer, you might find a solution. Others certainly will have other ideas. I expect you won't be able to use your app to actually make the order on the food service web pages. These services want you to use their web pages.
Regards,
Steve