Program using ten radio buttons to show five states

Assignment Help Programming Languages
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.

Reference no: EM1349294

Questions Cloud

Compute the company''s productivity before the change in work : Compute the company's productivity before the change in work rules and after the change and What is the percentage increase in productivity?
Find the amount of the loan : An automobile company, Nissan, as temporary cash surplus and lends its funds overnight through a repurchase agreement to a government securities dealer, earning $55,600 in interest income when RP loan rate stood at 5.70%.
What torque must the motor supply to take the disk : The magnetic field has been measured to be horizontal everywhere along a rectangular path x = 22 cm long and y = 5 cm high. Along the bottom the average magnetic field B1 = 1.3 10-4 tesla, along the sides an average magnetic field B2 = 1.0 10-4 te..
Explain how much saving does he or she do in first period : Illustrate what is the individual's optimal consumption in each period. Explain how much saving does he or she do in the first period.
Program using ten radio buttons to show five states : It is program using 10 Radio Buttons to show 5 States and 5 Capitals to user's interface. Also, there is text box to print "Correct" and "Incorrect" when Sate and the Capital is a correct match.
Impact an individual ability to recognize objectives : There are many factors that impact an individual's ability to recognize objectives. These factors include orientation. There have been some studies that have demonstrated that orientation has relatively little effect on object recognition.
Explain behavioral phenomena : On May 20, 2004, The Wall Street Journal ran a front page story entitled "Biotech's Dismal Bottom Line: More Than $40 Billion in Losses. " The article makes many points.
Define the number of product options available in the us : Define the number of product options available in the US consumer market. In virtually every product category
What is likely to happen as he uses the brake : Reading glasses of what power are needed for a person whose near point is 110cm, so that he can read a computer screen at 52cm? suppose a lens-eye distance of 2cm.

Reviews

Write a Review

Programming Languages Questions & Answers

  Build a student record managing system application

Build a student record managing system application

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Solve the programming problem

Solve the programming problem

  Creating method to union the interface for adt bag

Add method union to  interface BagInterface for ADT bag which returns as new bag the union of bag receiving call to method and bag which is the method's one argument.

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Write a paper on memory management

Write a paper on Memory Management

  Explaining class with no constructors

How many constructors can a class have? Can you have a class with no constructors? If a class has more than one constructor, which of them gets called?

  Program for saving account balance report

Savings account balance report from customer savings account file. Every input savings account record contains account number, balance forward, deposits (sum of all deposits).

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Definition of function quadratic receives double parameters

Write down definition of function named quadratic which receives 3 double parameters a , b , c . If value of a is 0 then function prints the message "no solution for a=0"

  Program to prompt a user for hourly pay rate

Create program called "calculatePay" which will prompt user for their hourly pay rate.

  Explaining steps to execute branch instruction

Sketch a flow chart which carefully explains steps that little man follows to execute a branch instruction.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd