Skip to content
Transcript

In this activity, you'll learn about conditionals.

You'll learn that computers make decisions by looking at conditions to tell them whether or not to run specific code.

This is a huge part of what computers do, and a really important concept in computer science.

Think of your favorite apps, software programs or electronic toys.

Every single one of them uses conditionals, and most of them probably use thousands.

Conditionals even help pets.

Check out this video about a collar that sends your pets GPS location to a smartphone, so that you don't have to worry about your pet getting lost.

A small device, it attaches to your pets collar.

If your pet goes missing, you'll get alerted immediately on your smartphone.

With the press of a button, would be able to use the GPS in the device and the GPS in your phone to guide you turn by turn to your pets location.

That sounds great, and what triggered you to develop a tracker and how does it exactly work?

Sure, yeah, so I actually was inspired by my own dog who would would life out there. Aww!

This is Pip. Hi, Pip!

Welcome, Pip!

Fifteen pound terrier mix, so shortly after we adopted him, he's gonna go back to sleep, he went missing.

It was really terrifying, and so that's what encouraged us to come with this solution.

That's pretty sweet.

If your pet goes missing, then this app will display a GPS location on the collar, and give you directions to that location.

If your pet is nearby, it will make the battery go to sleep, so it has more battery life for when your pet actually is lost.

Good thing computer scientists like you protect lost pets.

Next session, you will create an advertisement that shows off the features of a new fitness gadget.

Sounds really fun.

As you finish up today, think about this quote from Serena Williams.

Serena has dominated tennis for over a decade, and she's wrapped up several gold medals, Master's Tournament wins, and many more.

Want to know how?

She says luck has nothing to do with it, because I have spent, many, many hours, countless hours on the court working for my one moment in time, not knowing when it would come.

Greatness is worked for each and every day, just like Serena says, so when you're struggling with a tough issue or problem, just keep going and eventually, your moment will come to shine.

See you next time.

Instructions
Write a G+ shout-out!
Attributions
  • "Never Lose Your Pet Again With Animal Tracker PIP" by IntoConnection (https://www.youtube.com/watch?v=Zj15wbMcX_Y) -- Licensed by Creative Commons Attribution 3.0 Unported (https://creativecommons.org/licenses/by/3.0/legalcode) -- Video trimmed to needed length, audio removed
  • "Serena Williams July 2008" by Nrbelex (https://commons.wikimedia.org/wiki/File:Serena_Williams_July_2008.jpg) -- Licensed by CC-BY-SA-2.5 (https://creativecommons.org/licenses/by-sa/2.5/deed.en)
  • "Welsh Corgi Pembroke WPR Kamien 07 10 07" by Lilly M (https://commons.wikimedia.org/wiki/File:Welsh_Corgi_Pembroke_WPR_Kamien_07_10_07.jpg) -- Licensed by Creative Commons Attribution 3.0 Unported (https://creativecommons.org/licenses/by/3.0/legalcode)