Thread: beginning programmer needs help with a structures program!

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    1

    Unhappy beginning programmer needs help with a structures program!

    i need help with a program that calculates average household income, and lists the identification number and income of each household whose income exceeds the average. Also, determine the percentage of households below the poverty level using the formula P=$7500.00+$950.00x(m-2), where m is the number of members of each household. No more that 25 households were surveyed. This program uses structures. I have no idea what i am doing on this one, so any help would be appreciated, thank you.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Well maybe you should just sit down with some pen and paper and write out things you think you will need in the program. This is usually very helpful if you aren't sure about certain aspects in the beginning. Are you completely lost or does a certain portion of the program confuse you? Try writing out some of it and I'll be glad to help you.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. program printing ".N=?" at beginning of string
    By bertazoid in forum C Programming
    Replies: 22
    Last Post: 02-10-2009, 12:14 PM
  2. Problem using structures (they crash my program)
    By shadow1515 in forum C Programming
    Replies: 7
    Last Post: 06-17-2008, 08:36 AM
  3. Segmentation fault in beginning or program
    By tameeyore in forum C Programming
    Replies: 1
    Last Post: 02-26-2005, 08:16 PM
  4. Beginning C programmer...
    By Edgar in forum C Programming
    Replies: 4
    Last Post: 09-24-2001, 12:52 AM