I was working on my Computer Science assignment and I found several sentences to be little vague to me.
*The Clinton/Trump campaigns want to target advertising to specific regions in the nation. To do this, they want you to analyze the data for particular regions of the nation. To do this, you should first prompt the user to enter the number of states in the region, reprompting if the user enters a non-positive number (you don't need to check that there are fewer than 51 states in the region since this program is intended to work for arbitrary files). Then, prompt for each of the state codes one at a time. The user will not necessarily enter them in sorted order. Finally, print the following message to the screen:{Obama,Romney} won the popular vote by N points in the region. Note that the {} above is standard notation to indicate that you print one of the options.
If at any point an illegal state is entered, you should just print the following error message: XX is not a legal state In that case, you should reprompt for the entire region (but not region size) again. You do not need to check that the entered states are distinct. *
Please read only the bolded sentences and ignore the rests.
My question is, what am I supposed to ask users to enter for the first and the second?
The first bolded text to me, sounds like I'm testing the user to see if they know how many states are there in the United States.
The second bolded text says to 'prompt for each of the state codes one at a time.' It's asking user to input state codes, which sounds like okay, but what about the first bolded text?
I wonder if it's just me can't understand it clearly.
Do they make sense?
If so, what do they mean?