Letter Frequency
Find the letter frequency of the Armenian alphabet in Raffi’s “Samvel” novel. For that you’ll need to:
- Download the novel here.
- Google how to read the contents of the file (note the encoding of the file you’ve downloaded).
- Create an array of integers, items of which will hold the counters for frequencies of the corresponding letter (convert the letters to lowercase first)
- Iterate over the text and increment the correct counter when encountering a letter.
- Return the resulting array.