- To write an application that outputs the individual words that appear in the book, and how many times that word appears in the text file.
- The second part is to also output whether the number of times each word appears is a prime number.
You may ignore punctuation and capitalisation.
This is my first attempt at writing C#, however, the company have been kind enough to allow me to write it in Ruby also.
- Ruby
- RSpec
- Git(Hub)
- C#
- Xamarin Studio
- Mono
- NUnit
To run the application run irb
:
require "./ruby/lib/book_parser"
=> true
parser = BookParser.new("text.txt")
=> #<BookParser:0x007f80f1d53260 @book="*The Project ...
puts parser.report
Word | Number of Words | Prime?
The | 3419 | False
Project | 33 | False
...
Load the project and run it within MonoDevelop.