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:

More info here.
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 CAN TEST YOUR OWN WRITING! What reading age is your writing?
………………………………………………
Are your FINANCIAL and LEGAL CONTRACTS READABLE?
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
Readability Calculations: Method 1
YOU ARE THE COMPUTER.
You will do All calculations.
Readability Calculations: Method 2
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.
Readability Calculations: Method 3:
Cut and paste text directly into a Readability Calculator to get score.
Here are some interesting Readability Scores:
