I have got an assignment from a company the problem was as follow
Write a command line program in C# to list the 20 most frequently occurring words in a text file, printed in order of most frequent to least frequent. You may only use the built-in numeric and string types, arrays, as well as any types / data structures you define in your program. You may also use StreamReader, but you may only call Read(char[], int, int) on it. System.Linq is not permitted
So how i structured my application into to 4 projects
One Console project
- Word-Finder – Having WordUtil to read and print all words to console
Three library projects
- Word-Finder.Contract – Having all the interfaces and models
- Word-Finder.Services -Having services classes like
FileService
to read words from file - Word-Finder.Utilities -Having common utilities and extension classes
Find GitHub repo link Here
So can you guys review the Code and post here the pros & cons of code and tell if its worth selection for the guy who is having 3 year’s exp.