5BEAT THE BUS: TRACKING LOCATION WITH MAPS AND SENSORS

Image

In Chapters 3 and 4, we used variables to store and process information, which allowed us to track and report data to users. In the “Fruit Loot” and “Multiplication Station” apps, we created variables that hold one value at a time, like the game score, number of fruits dropped, and percentage of multiplication problems correct.

But imagine how much more powerful our apps would be if we could store and manipulate multiple values in a single variable! For example, we could display a game’s top 10 scores or allow users to choose from a list of 50 states, without needing to create a different ...

Get Learn to Program with App Inventor now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.