Not sure if I know how to explain this efficiently but basically I want to make a "list" of 50 objects(?), each with it's own string and two double variables, so that I can pass those three values for each into another function depending on which one is selected. Does that make sense? What is the best way for me to accomplish this?
It might make more sense to explain what I'm actually trying to accomplish. I'm writing a lottery program and depending on the state the person is from the program will pass in different values as far as the tax rate, lump sum, annual payments, etc. I'm wondering if it would be easier to define a whole list of each of those things for each state, which is what I'm asking how to do, or if I should just define the tax rate and calculate the payments themselves. The latter is obviously the "better" solution, but whichever is easier is fine with me. And either way my main question is what is the best way to define a "list" of variables for each state?
I see, that does make much more sense. Thanks guys, really helpful.
I'm assuming there's no way to declare some sort of template(can't think of a better name) where I could just do AL = ( "Alabama" , "AL" , .07 , 10000000); for each of the states, instead of assigning every one of the four variables for each state individually?