# Thread: Help with explaining what this means

1. ## Help with explaining what this means

Yes, this is a homework problem, but I just want to know what it is saying. I'm lost on what to use to create this program.

A program that processes a sequence of lines, displaying a count of the total number of words in those lines as well as counts of the number of words with one letter, two letters, and so on.

Any help will be much appreciated.

Thanks

2. It's saying to count the number of words in a sequence of lines. I'm not sure how else to explain it. If the line is "foo bar blee" then that's 3 words. Then you have to count how many of the words contain a certain number of letters. "foo" is 3 letters. So is "bar". "blee" is 4 letters.

Are you just confused about what a sequence of lines is, or...?

3. I'm just lost right now, basically on how to code it.. I'm new to programming and have been trying some things that havent been working. I need a push in the right direction.

4. Any assignment of this nature should have sample input and sample output.

5. Originally Posted by Infuriate
I'm just lost right now, basically on how to code it.. I'm new to programming and have been trying some things that havent been working. I need a push in the right direction.
Give it a shot and show us your attempt. You're more likely to get help if you've shown that you've at least tried.

Do you know how to get a line of input?
Do you know how to parse that line into words?
Do you know how to make a counter for the number of words?
Do you know how to find the length of a word?

Try breaking the program down into steps that you need to accomplish. Then put the pieces together and viola!