Reference no: EM1349294
Q1) It is a program using 10 Radio Buttons to display 5 States and 5 Capitals to the user's interface. Also, there is a text box to print "Correct" and "Incorrect" when the Sate and the Capital is a correct match. Below the text box I have two 'Verify Answer_Click' and 'Exit_Click' Buttons. I've been reprogramming this project more than 20 times since 1st January. My program is either print "Correct" or "Incorrect" the whole time.
More details about this project
In this exercise, you code an application that allows the user to select the name of a state and the name of a city. After making both selections, the user can click the Verify Answer button to verify that the selected city is the capital of the selected state. Open the Capitals Solution(Capital Solution.sln) file contained in the VB2010Chap05Capital Solution folder. If necessary, open the designer window.
a. Designate the first radio button in each group as the default radio button for the group.
b. Enter the code to invoke the Click event for the two default radio buttons when the form first appears on the screen.
c. Declare two class-level String variables named strCapital and strChoice.
d. The Click event procedure for each State radio button should assign the appropriate capital to the strCapital variable and then remove the contents of the lblMSG control. Code each State radio button's Click event procedure.
e. The Click event procedure for each Capital radio button should assign the selected capital to the strChoice variable and then remove the contents of the lblMsg control. Code each Capital radio button's Click event procedure.
f. The Verify Answer button's Click event procedure should compare the correct capital with the capital chosen by the user. If the user selected the correct capital, the procedure should display the word "Correct" in the lblMSG control; otherwise, it should display the word "Incorrect" in the lblMSG control. Code the button's Click event procedure.