C# developer needed to help resolving 2 small problems on file processing
Budget: $10 – $30 USD
Write a program that asks the user for a file name containing text. Your program should process the file and perform analytics on the content:
1. Create output neatly showing:
a. Word
b. Count of occurrences in the file
2. Produce the same output, except order the output in descending order based on the word count (b in the above)
3. Produce the same output, except order the output in alphabetical order based on the word (a in the above)
4. Your program should ignore things like commas, parenthesis, and other punctuation. It should also ignore the case of a word (e.g. Word and word and WORD should also be counted as one.)
5. Test your program with the two attached files (Links are to videos for each of the songs, the files with lyrics are in Blackboard):
a. Tom Tom Club, “Wordy Rappinghood”:
https://www.youtube.com/watch?v=6Vl1m5FYlAo
b. Daft Punk, “Lose yourself to dance”:
https://www.youtube.com/watch?v=Z_Sf0gi-mGI
c. Joyner Lucas – ADHD:
https://www.youtube.com/watch?v=siiKTqLO0Cc
d. The heads, “Damage I’ve done”:
https://www.youtube.com/watch?v=62Mye3v3_KQ
e. Alternatively, you can provide your own song selections, but if you do so you:
i. Must have a song with lyrics of similar complexity
ii. Must provide the lyrics in a .txt file in your submission.
6. Note: Words such as “don’t” can be counted as a word, i.e. the “’” character does not create two words for our analysis. You can also process words that
end with an apostrophe as is (i.e. don’t need to remove it). (I am making this exception so that you can leave words like “don’t” as is while not having to worry about changing words like “thinkin’” to “thinkin”.)
7. Your program should handle (via exception handler) a situation where the input file name is not found or can’t be opened (e.g. permission error or another program has exclusive access). Your program should continue prompting the user for a new file name, but also give them a way of exiting.
2
For this assignment, you will be doing a “Find Duplicate Files” program that is given two directories in which it compares the contents (including subdirectories) looking for files whose contents a duplicated. Note that files that aren’t the same size are by definition different. A file is considered a duplicate if they have the same c
1. Create output neatly showing:
a. Word
b. Count of occurrences in the file
2. Produce the same output, except order the output in descending order based on the word count (b in the above)
3. Produce the same output, except order the output in alphabetical order based on the word (a in the above)
4. Your program should ignore things like commas, parenthesis, and other punctuation. It should also ignore the case of a word (e.g. Word and word and WORD should also be counted as one.)
5. Test your program with the two attached files (Links are to videos for each of the songs, the files with lyrics are in Blackboard):
a. Tom Tom Club, “Wordy Rappinghood”:
https://www.youtube.com/watch?v=6Vl1m5FYlAo
b. Daft Punk, “Lose yourself to dance”:
https://www.youtube.com/watch?v=Z_Sf0gi-mGI
c. Joyner Lucas – ADHD:
https://www.youtube.com/watch?v=siiKTqLO0Cc
d. The heads, “Damage I’ve done”:
https://www.youtube.com/watch?v=62Mye3v3_KQ
e. Alternatively, you can provide your own song selections, but if you do so you:
i. Must have a song with lyrics of similar complexity
ii. Must provide the lyrics in a .txt file in your submission.
6. Note: Words such as “don’t” can be counted as a word, i.e. the “’” character does not create two words for our analysis. You can also process words that
end with an apostrophe as is (i.e. don’t need to remove it). (I am making this exception so that you can leave words like “don’t” as is while not having to worry about changing words like “thinkin’” to “thinkin”.)
7. Your program should handle (via exception handler) a situation where the input file name is not found or can’t be opened (e.g. permission error or another program has exclusive access). Your program should continue prompting the user for a new file name, but also give them a way of exiting.
2
For this assignment, you will be doing a “Find Duplicate Files” program that is given two directories in which it compares the contents (including subdirectories) looking for files whose contents a duplicated. Note that files that aren’t the same size are by definition different. A file is considered a duplicate if they have the same c