Mystery career!

Did you guess my job?

I'm a software engineer!

Find the clever trick!

Hi! I'm Rachel's dad, Ian.
I'm a software engineer.

When I was a kid

I loved computer games.

Games like SimCity 2000 and Star Trek, on our old computer.

New games came on floppy disks in the mail!

I wanted to know how games work.

How I got here

So what do I do all day?

?

I teach computers how to solve problems.

Super fast

It can count to a billion in about one second.

Not very smart

It does exactly what you say. Even silly things!

My Java job

Computers only read 1s and 0s

At Oracle I worked on Java. It turns words people can read into something a computer can run.

Words people read

Java
System.out.println(
    "Hi, class!");

Bytecode

Instructions for the Java machine
getstatic System.out
ldc "Hi, class!"
invokevirtual println

1s and 0s

What the computer sees
10110010 00000000 00000111
00010010 00001101
10110110 00000000 00001111

Skills I use every day

My job is to find a clever trick,

so the computer doesn't have to work so hard.

Puzzle!

Red socks and blue socks are mixed up in a dark drawer.

How many do you grab to be sure you get a pair?

1
2
3Red or blue? It matches!
3!

Big machines send messages!

Each one has a tracker: a little computer that sends messages through the air.

My robot job

I helped a robot squish dirt flat.

So roads and buildings don't sink.

It drives itself. No driver!

It has to squish every bit of the field.

Uh oh. This field has a pond!

Back and forth, back and forth...

The robot sees the pond and stops.

But now what? It doesn't know!

The plan: cut it into easy pieces!

Computers aren't smart, so we plan ahead.

Cut where the shape changes.

Now each piece is easy: back and forth!

Robot field

The robot can stop at the pond, but it needs a plan to squish the whole field.

The hard part!

Santa has 3 houses to visit.

How many different orders could he go in?

6 different ways!

More houses, WAY more ways

3 houses6
5 houses120
10 houses3,628,800
20 houses2,432,902,008,176,640,000
A super-fast computer would need about 77 years to try them all!

Santa's routes

Add houses and see how many different orders Santa could visit them in.

Different orders

Things I love

Look for the clever trick!

Try these at home:

Sock puzzle

Ask a grown-up how many socks to grab.

Be the computer

Tell a grown-up exactly how to put on a jacket.

Cut it up

Color a weird shape by cutting it into easy pieces.

Questions?

Magic!

Want to see a magic trick?

Card magic

Make a pattern, add the sneaky row, then flip one card while the magician looks away.

3. The magician turns around. A helper flips ONE card.

How did the magic trick work?

My sneaky row made every row and column have an even number of red cards.

Flip one card, and its row and column turn odd!

Computers use this trick to catch mistakes.

Game!

Can you beat me?

  • There are 12 crayons.
  • On your turn, take 1 or 2.
  • Whoever takes the LAST crayon wins!

Crayon game

Take 1 or 2 crayons. Whoever takes the last crayon wins.

Kids took

Computer took

Goes first:

The secret: we always make 3!

You take 1, I take 2.

You take 2, I take 1.

12, 9, 6, 3, 0. I always get the last one!

Bonus puzzle!

Now the drawer has red, blue and orange socks.

How many do you grab now?

1
2
3
4Any color matches!
4!

The trick: one more than the number of colors.

Sock drawer

Grab socks from the dark drawer until you get a pair.

Guess my number

Think of a number from 1 to 100. The computer finds it in 7 guesses or fewer.

Think of a number. Don't tell!

Dominoes

Can you cover every square? Tap two squares side by side to lay a domino.

Tap a domino to pick it back up.

1
0:00
Right arrow or Space: next · Left: back · F: full screen · N: notes · A: activities · T: restart timer · Home: first slide