# CS4ProgrammingWeek16

Continue Khan Academy programming using Java Script https://www.khanacademy.org/cs

## Contents

## Monday

NO CLASS - Coronation Day

## Tuesday

### EARTHQUAKE!

Propagation time to Chiang Mai - 12 to 60 seconds

#### Seismic Waves

Types of Earthquake waves:

#### Locating Epicenter

Time the difference in arrival time between the P-Wave and the S-Wave.

### Rock, Scissors, Paper, Lizard, Spock

Big Bang Theory: Rock, Scissors, Paper, Lizard, Spock

** How to Debug A Program in Khan Academy**

## Thursday (Lab)

http://en.wikipedia.org/wiki/Polymorphism_%28computer_science%29

In programming languages and type theory, polymorphism (from Greek πολύς, polys, "many, much" and μορφή, morphē, "form, shape") is the provision of a single interface to entities of different types.[1]

Polymorphism using "Flower Grower Challenge": https://www.khanacademy.org/cs/polymorphism-challenge-flower-grower/6304205634535424

** How to Debug A Program in Khan Academy**

If you are interested you can look at my PacAttack program - but unfortunately, it won't debug! https://www.khanacademy.org/cs/oop-pac-attack/5990486830481408

## Technology Friday

### Programmers

Silicon Valley Episode 1 - Groups of Programmers

### Cryptography - Part 3 - Diffie-Hellman

Khan Academy - Modern Cryptography by Brit Cruise

- The Fundamental Theorem of Arithmetic (3:51)
- Diffie-Hellman Key Exchange (part 1) (4:31)
- Discrete Logarithm Problem (1:55)
- Diffie-Hellman Key Exchange (part 2) (2:18)