Quote:
|
Originally Posted by Eric the Red
ROFL, some of the jobs are completely easy money look at this
Quote:
Budget "$30 - 100"
This is a C project that requires a program to read a text file and count how many words exist in the text file. The program needs to detect if unique words are used more than once and count them accordingly. The program must be able to read any text file passed to it and count all word instances in it.
|
|
If you ask me, it looks like some homework assignment for some kid who's got more money than brains. Of course, this might explain why the requirements are so sketchy. For example, imagine the file contained the following:
The quick brown fox jumps over the lazy dog.
Does that count as nine words? Ordoes it instead count as eight words, because there are only eight distinct (unique) words, given that 'the' is repeated? Rather than returning a single number, should it return output that counts occurrences of all the words? For example, like this:
2 the
1 quick
1 brown
1 fox
1 jumps
1 over
1 the
1 lazy
1 dog
I'm assuming in all three scenarios that it performs in a case-insensitive manner; should this not be correct, it will change the requirements yet again.
If I were to attempt this 'job', I'd be drawing up a detailed list of requirements, and I'd then get the client to sign off on it before doing any of the actual coding. Even then, if doing this requirements analysis is too involved, you need to ask yourself if it's worth your time; after all, the client may opt for another programmer, and you might have something more productive to do.