Read and parse a text file to count word frequencies
₹600-1500 INR
Closed
Posted over 7 years ago
₹600-1500 INR
Paid on delivery
Read and parse a text file to count word frequencies. You are required to use a doubly linked list to store the words and frequencies as they rolled in, then print the 10 most repeated words at the end.
Use the following function to read and parse the text file. The text file to be read and parsed is a short story stored in “[login to view URL]” which is available for download.
Note: pronouns (I, you, he, they, etc.), demonstrative pronouns (the, these, that, etc.) and prepositions (in, near, on, etc.) are to be exempted from words with maximum counts.
-- Use this Function for the Program --
int getNextWord(FILE *fp, char *buf, int bufsize) {
char *p = buf;
char c; //skip all non-word characters
do {
c = fgetc(fp);
if (c == EOF)
return 0;
} while (!isalpha(c));
//read word chars
do {
if (p – buf < bufsize – 1)
*p++ = tolower(c);
c = fgetc(fp);
} while (isalpha(c));
//finalize word
Hello, Sir Weebside Inc. is a professional freelancer service provided to worthy clients like you.
We can provide our best developers to provide you High-Quality Product with 100% Delivery Rate, 100% Satisfaction.
Having Experts in Java, C / C++ , C# , VB , .NET , SQL, MySQL, and Python Programming Language and Frameworks made us capable to bid here.
We can provide any service of any caliber within Hours.
CHAT WITH US TO START RIGHT NOW.
BEST DEVELOPERS AROUND. WITH HIGHEST QUALITY DELIVERED WITHIN TIME. WITHIN BUDGET.
CLICK CHAT TO START
Hello!
I am highly proficient in C and abstract data types. I have experience with other projects requiring the implementation of data structures. If you need someone to quickly and reliably deliver the best possible solution, feel free to contact me.
Throughout my c experiences, I'm pretty sure that i can help you with your problem. If you need any further informations, don't hesitate to send me a mail.