Question: using math.random in java Create a 2 - D array of strings that will store all 5 0 state names and their capitals. Ask the

using math.random in java Create a 2-D array of strings that will store all 50 state names and their capitals. Ask the user to enter the number of states they would like to guess. For each guess, choose a random row. DO NOT go through the entire array of all 50 states.
Tell the user if they are correct or incorrect. Keep track of how many correct answers they gave.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!