I am designing a program that will take a file input, in the programs case, a census file that has 4 different inputs age, gender, marital status, and district.
My question's are
- How exactly could I take the input and sort them into arrays, both integer (age and district) and string (marital status and gender) data types
- How do I use them to count how many of each there are?
Any suggestions will help! I know how to read in the file and separate the info using input.Split(',') to separate whenever there is a comma, however, I am having trouble looping through so it doesn't repetitively loop unnecessarily.