View Single Post
Old May 15th, 2007, 3:53 PM   #11
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,034
Rep Power: 5 lectricpharaoh will become famous soon enough
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.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote