I want to start off by saying I never even knew of this program before today and have no experience. I would like to build this app for my use but I am getting stuck while trying to add a number to a time and I am unsure how to proceed.
I am trying to find the time you should arrive at point B from point A.
So far I have Miles * 60 / Speed = Minutes to arrive.
I would like to add Start Time + Minutes to arrive = Arrival Time.
The issue I have is figuring out a way to show the Arrival Time.
So if my miles are 10.3 and my speed is 12 and my Start time is 11:07 I want my Arrival time to show 11:58.
Miles * 60 / Speed = Minutes
Then
Start Time + Minutes = Arrival Time
Is there a way to get the number to add to a time and show the new time?
--
I would like to add Start Time + Minutes to arrive = Arrival Time.
use the clock component and its AddMinutes method, see also the documentation http://ai2.appinventor.mit.edu/reference/components/sensors.html#Clock
A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .
Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the
Top 5 Tips: How to learn App Inventor
You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.
--
I am not using the current time for adding minutes, it is an inputted time. So if it is currently 10am and I am leaving at 11:16am I need to know what my arrival time is prior to the leaving time.
--
The Clock component is in the Designer's Sensors drawer.
Pull it in to the project anyway.
It has lots of time conversion, formatting, and manipulation blocks.
--
댓글 없음:
댓글 쓰기