a list of the 50 state abbreviations as well as the population for each of the states. You are to write a C++ program that will read this file and place the abbreviations in a string array and the population into an int array. Note that there will not be more than 55 values in each array. The population value is expressed in 1,000s of people.
Once the values are read into the appropriate arrays, you are to set up the code that allows a user to find the population for a particular state. You should prompt the user for a state to search for. Search the state array (containing the state abbreviation) using the sequential search routine from our text. Once a states position in the array is found, then the value in the population array will be the answer. If a person enters a state abbreviation that is not in the array, then an appropriate error message should be printed. Allow a user to enter different states as desired (hint: using a while loop or a do-while loop).
Nothing is working help!!
Once the values are read into the appropriate arrays, you are to set up the code that allows a user to find the population for a particular state. You should prompt the user for a state to search for. Search the state array (containing the state abbreviation) using the sequential search routine from our text. Once a states position in the array is found, then the value in the population array will be the answer. If a person enters a state abbreviation that is not in the array, then an appropriate error message should be printed. Allow a user to enter different states as desired (hint: using a while loop or a do-while loop).
Nothing is working help!!