Write a program that repeatedly prompts the user to enter a capital for a state. Upon receiving

Question:

Write a program that repeatedly prompts the user to enter a capital for a state. Upon receiving the user input, the program reports whether the answer is correct. Assume that 50 states and their capitals are stored in a twodimensional array, as shown in Figure 8.10. The program prompts the user to answer all states? capitals and displays the total correct count. The user?s answer is not case-sensitive.

Figure 8.10image

Here is a sample run:image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: