Open the CityState Solution.sln file contained in the VB2017Chap08CityState Solution folder. Open the Code Editor window. Locate

Question:

Open the CityState Solution.sln file contained in the VB2017\Chap08\CityState Solution folder. Open the Code Editor window. Locate the btnDisplay_Click procedure. The procedure should declare and initialize two parallel one-dimensional arrays named strStates and strCities. Use the names of any five states to initialize the strStates array. Initialize the strCities array with the capital of its corresponding state in the strStates array. The procedure should display the contents of the arrays in the list box, using the following format: the city name followed by a comma, a space, and the state name. (Be sure to clear the list box before displaying the names.) Save the solution and then start and test the application.

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

Step by Step Answer:

Question Posted: