Write a complete C program which comes up with suggestions for a Scrabble-like game.
Your program must have take in 1 command-line argument, which is the filename of a list of words which are in the dictionary. (See [login to view URL] for an example word list). Each word in the word list will be on a separate line. You may assume that the word list will be in alphabetical order.
Your program will then read in requests from standard input (e.g., the keyboard). Each request will be on a separate line. Each request will begin with a positive integer value, followed by a space, followed by some characters. For example:
6 aba
For each request, your program must print out the LONGEST word in the dictionary, which:
Begins with the specified letters (e.g., in the example above, the word would have to begin with "aba")
Is less than or equal to the specified number in length (e.g., in the example above, the word could not be longer than 6 characters)
Has not been print out before.
Using the "6 aba" example above, your program should try to find a 6-letter word beginning with "aba", such as "abacus". If it had already given "abacus" for a previous request, then it would be required to give a different word (such as "abased").
If multiple words match the criteria and are the longest, you can return whichever one you like.
.This project is easy. I can complete it in 60 minutes. I am ranked at top1% in algorithm/coding websites like codeforces and topcoder (user-name : shank_punk) . I can guarantee 100% satisfaction. You can have a look at my freelancer profile if you have any doubt regarding my programming skills
I can complete your assignment in under 1 hour. I have complete knowledge of C. I am used to dealing with assignments, and dealing with formatted input and output files.
This task is simple and involves creating a data structure to hold inputs, composed of an integer and a string.
Then creating an array of such records, storing the whole input file in this new data structure. Writing a function that takes a record and outputs a string chosen from the dictionary.
I can also comment and explain the source code in case you have any doubts. My english and communication skills are excellent.
Thanks.