Help with explaining what this means

This is a discussion on Help with explaining what this means within the C Programming forums, part of the General Programming Boards category; Yes, this is a homework problem, but I just want to know what it is saying. I'm lost on what ...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    7

    Unhappy 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. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,163
    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...?
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    7
    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. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    15
    Any assignment of this nature should have sample input and sample output.

  5. #5
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,163
    Quote 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!
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. what this warning means..
    By transgalactic2 in forum C Programming
    Replies: 5
    Last Post: 01-23-2009, 04:13 AM
  2. What does this code means?
    By junkeat90 in forum C++ Programming
    Replies: 6
    Last Post: 01-14-2008, 04:03 AM
  3. Replies: 2
    Last Post: 05-15-2007, 03:30 AM
  4. what does "close wait" and "fin_wait2" means?
    By hanhao in forum Networking/Device Communication
    Replies: 0
    Last Post: 07-18-2005, 05:14 AM
  5. Can someone explain to me what this code means
    By Shadow12345 in forum C++ Programming
    Replies: 3
    Last Post: 12-22-2002, 11:36 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21