## 1. Hokey Pokey Algorithm

November 25, 2015

Here’s the Hokey Pokey:

You put your right foot in
You take your right foot out
You put your right foot in
And you shake it all about
You do the hokey pokey
And you turn yourself around

Why are algorithms as easy as the Hokey Pokey?

Because the Hokey Pokey is an algorithm or a set of steps that have to be taken to complete a task (see below) and the task is having fun and/or being really embarrassed by your parents in public. Whatever!

We are going to look at texts including a maths test to check their readability. Here are just a few songs with their age and Grade readability scores:
Hokey Pokey (above) = Grade 3 = 9 yo
Frosty the Snowman = Grade 5 = 11 yo
Wildest Dream = Taylor Swift = Grade 3 = 9 yo
Russians* Sting = Grade 6 = 12 yo
* Most complicated lyrics I know. Any other suggestions?

November 25, 2015

The above algorithms are called pseudocode because you do not type a letter to a computer to tell it what to do. You have to write code to instruct it.
But computer code, as my little sailor friend would say, uses a shipload of maths.
I am going to give you instructions by writing a letter to you because that is your CODE that you understand.
You are going to calculate the The Flesch–Kincaid reading score for The Hunger Games and a Harry Potter TEXT.
Don’t run screaming out the door. This is not too complicated.
The Flesch–Kincaid reading score or, quaintly, the F–K formula (Oops! Only one – )tells you the grade reading level of a text.
F-K formula

We will use a basic version and a calculator:

You will need:
Word Count =
Sentence Count =
Syllable count =
The Flesch Reading Ease score is interpreted as follows:

READABILITY is important for Newspapers, books and websites

Text to be read by the general public should aim for a grade level of around 60 – 69 or Grade 8.
YA authors use the F-K formula to see if the text of their novel has the appropriate reading age.

………………………………………………

You may be able to SUE your BANK!!!!!!!!!

Contracts, by law in the US, should be written to a reading score of Grade 8. According to a recent article in the Telegraph, UK:
Insurance and banking customers who have been mis-sold financial products are more likely to be awarded compensation if they use a scientific test to prove policy documents were too difficult to read.
The “Flesch Kincaid” reading score is well established in the US, where most states require insurers’ policy documents to be written at no higher than a ninth-grade level (14–15 years of age) of reading difficulty.

…………………………………………………………………

Hunger Games And Harry Potter TEXT Readability
YOU ARE THE COMPUTER.
You will do All calculations.
You are the algorithm. You will cut and paste text into programs that auto-count words and syllables, collect this and other data from your computer and do the calculations using a calculator or online Web 2 calculator.
Cut and paste text directly into a Readability Calculator to get score.

Here are some interesting Readability Scores:

## Maths Mystery Box 7: PHONES

February 18, 2015

Middle school maths challenge

Algebra & texting

or  LGbra & txtN

According to a Nielsen Survey the Average US teen sends 3,000 txt messages a month. Averages don’t tell us very much. As this fab post at Maths PLUS explains. The average number of ears on 5 people is 1.8 if one dude has one ear. The Nielsen study did show the averages by gender.

This is the maximum cost per txt for pre-paid phone cards. Anyone who sends this many txt messages a month would be crazy if they didn’t use a monthly phone plan.

# HELP ME!

### Some txts are serious. Very serious.

The 24/7 in the USA has helped many teenagers in crisis.

# 741741

### the numbers down the Left of the phone.

OR from outside USA add code here. You can find details of the Crisis TEXT LINE in R U There? By Alice Gregory, The New Yorker (9 FEB 2015)

………………………………………………………..