Presentation is loading. Please wait.

Presentation is loading. Please wait.

Write a program that places the names of five different states in labels, and allows the user to enter guesses of the corresponding state capitals in textboxes.

Similar presentations


Presentation on theme: "Write a program that places the names of five different states in labels, and allows the user to enter guesses of the corresponding state capitals in textboxes."— Presentation transcript:

1 Write a program that places the names of five different states in labels, and allows the user to enter guesses of the corresponding state capitals in textboxes. After entering his/her guesses, the user clicks the button to see the results.

2 The user enters his/her guesses in the textboxes and clicks the grade button.
The number of correct answers are added up and that sum is divided by the total number of questions and formatted as a percent. The Grade button becomes the Another Quiz button. The textboxes are made ReadOnly, incorrect answers are changed to red font color and the correct answer is added next to the incorrect. Note that “salt lake city” was accepted as a match for “Salt Lake City”

3 When (what is now) the Another Quiz button is clicked, a new set of states is displayed at random. You should not have two states the same for one quiz, but it is possible that two consecutive quizzes have some of the same states. The old answers should be cleared out, the textboxes’ ReadOnly property should be set back to false. The percentage display should be cleared out. Any red font should be returned to black. The button should return to saying “Grade the quiz”


Download ppt "Write a program that places the names of five different states in labels, and allows the user to enter guesses of the corresponding state capitals in textboxes."

Similar presentations


Ads by Google