Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

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.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M9224657

Have any Question?


Related Questions in Programming Language

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

Overviewthis tasks provides you an opportunity to get

Overview This tasks provides you an opportunity to get feedback on your Learning Summary Report. The Learning Summary Report outlines how the work you have completed demonstrates that you have met all of the unit's learn ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Structs and enumsoverviewin this task you will create a

Structs and Enums Overview In this task you will create a knight database to help Camelot keep track of all of their knights. Instructions Lets get started. 1. What the topic 5 videos, these will guide you through buildi ...

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

Extend the adworks applicationi add dialogs to allow the

Extend the AdWorks application I. Add Dialogs to allow the user to Add, Edit, Read and Delete a Customer and refresh the view accordingly. 1. The user should be able to select a specific customer from the DataGrid and cl ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Question 1 what is a computer program what is structured

Question: 1. What is a Computer program? What is structured programming? 2. What is modular programming? Why we use it? 3. Please evaluate Sin (x) by infinite series. Then write an algorithm to implement it with up to th ...

Php amp session managment assignment -this assignment looks

PHP & SESSION MANAGMENT ASSIGNMENT - This assignment looks at using PHP for creating cookies and session management. Class Exercise - Web Project: Member Registration/Login This exercise will cover adding data connectivi ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As