Results 1 to 5 of 5

Thread: Please help with my homework.....

  1. #1

    Thread Starter
    Registered User
    Join Date
    Aug 2007
    Posts
    2

    Please help with my homework.....

    I'm lost....here's the question.
    Array of a structure. Create a project to analyze an income survey. The statistics for each home include an id code, # of members in household, yearly income and state of residence.
    A menu will contain file, reports, help. The file menu will contain Enter Data and Exit. As the data are entered, they should be assigned from the text boxes to the elements of a structure.
    The reports for the project will be sent to the printer and include the following:
    (a) four column report displaying input data.
    (b) listing of id code and income for each household that exceeds the average income.
    (c) percentage of households having incomes below the poverty level.

    --------------------------------
    Poverty Guidelines

    Fam Size | 48 States | AK | HI
    1 | 9310 |11630 |10700
    2 | 12490 |15610 |14360
    3 | 15670 |19590 |18020
    4 | 18850 |23570 |21680
    5 | 22030 |27550 |25340
    6 | 25210 |35510 |32660
    7 | 28390 |35510 |32660
    8 | 31570 |39490 |36320
    ea add'l +| 3180 |3980 |3660

  2. #2
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668

    Re: Please help with my homework.....

    We're not going to do your homework for you so you'll need to be a little more specific on what has you stuck.
    If wishes were fishes we'd all cast nets.

  3. #3

    Thread Starter
    Registered User
    Join Date
    Aug 2007
    Posts
    2

    Re: Please help with my homework.....

    i'm stuck on if i need to create a multidimensional array and a lookup table in a single array or if it's just a multi....

  4. #4
    Fanatic Member bgmacaw's Avatar
    Join Date
    Mar 2007
    Location
    Atlanta, GA USA
    Posts
    524

    Re: Please help with my homework.....

    You should also say which version of VB you're using. Otherwise any help you get may be accurate but incorrect for what you're using.

    As for your specific question, the way I'd recommend doing this if you're using VB 2005 would be to create a class for your 'structure' and a generic List to contain instances of this class.

  5. #5
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Please help with my homework.....

    I would suggest doing as the homework suggests, and create a structure with the information required, and a single dimensional array to store each instance of the structure.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width