In this activity you built a gamethat kept track of batting averages,just like computer programs do for real life sports.
Google Fit also uses variablesto keep track of data.
Check out Googler Lisa Ray talking about it.
Google Fit is an open fitness ecosystemthat provides developers with a single setof APIs to discover, record, store,and read activity data with user permission.
So users have a single place to store all of their data.
And users own that data and can share with any Appsof their choice to make the data work harder for them.
Fitness Apps can request that data be storedfrom any variable or sensor.
And the user's fitness data is persistentwhen they upgrade their fitness devices.
You can see it in action here.
Variables store steps taken and time spentdoing different exercises.
This helps people keep track of their fitness.
Variables also keep track of the numbersof likes and dislikes a video on YouTube gets.
Each time someone clicks a thumbs up buttonon a YouTube video, the variable that holds the numberof times someone liked the video increases.
And the site shows this new number.
Google Maps uses variables as well.
A variable stores your current location.
That way the App knows whento tell you the next instruction.
A different variable stores the current instruction,so that it can be displayed at the top.
Google makes products using variableslike the one you used in this activity.
Next session you'll program a sweet extreme sports gamein which the user will control an extreme sports athleteto dodge obstacles.
Former New York Yankees All-Star Shortstop Derek Jeter,one of my favorite players of all time said,"There may be people that move more talent than you,"but there's no excuse for anyone"to work harder than you do."
This is certainly true for Derek,who struggled in the minor leaguesbefore becoming a 14 time All-Starand a five time World Series Champion.
Working hard is even more important than raw talentwhen it comes to learning, improving,and achieving success.
So no matter what you do, do your bestin each activity, and always work hard.
"Derek Jeter 2007 in Baltimore" by Keith Allison (https://commons.wikimedia.org/wiki/File:Derek_Jeter_2007_in_Baltimore.jpg) -- Licensed by CC BY-SA 2.0 (https://creativecommons.org/licenses/by-sa/2.0/deed.en)
"DevBytes: Google Fit APls for Android - Setup and Sensors" by Google Developers (https://www.youtube.com/watch?v=jwaQaWGLlTo) -- Licensed using CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/) -- Video trimmed to needed length, audio removed