Presentation is loading. Please wait.

Presentation is loading. Please wait.

Preliminaries Design page. Give an id to any part of the page that we take information from or write information to. Declare, instantiate and initiate.

Similar presentations


Presentation on theme: "Preliminaries Design page. Give an id to any part of the page that we take information from or write information to. Declare, instantiate and initiate."— Presentation transcript:

1

2

3

4 Preliminaries Design page.
Give an id to any part of the page that we take information from or write information to. Declare, instantiate and initiate the state and capital arrays (or borrow from a previous program).

5 Grade button start Shuffle the states and capitals.
They must be shuffled in exactly the same way. The shuffling should consist of one loop and there should only be one random number used for both arrays.

6 Grade button start (Cont.)
Have another loop to go through the quiz elements on the page. In it, Put the state names into the table cells on the left. They should have ids. Mine were tdState0, tdState1, etc. Clear the quiz textboxes (of any previous answers). They should have ids. Mine were txtCapital0, txtCapital1, etc. “Enable” the textboxes. Clear any previous result (number correct).

7 Another button Have another loop to go through the quiz elements on the page. In it, “Enable” the textboxes Ask if the user’s answer from the textbox matches the correct answer from the capital array. If they match, add to the sum of correct answers If they don’t math, add the correct answer to the textbox in parentheses. Put result (number correct) onto page.


Download ppt "Preliminaries Design page. Give an id to any part of the page that we take information from or write information to. Declare, instantiate and initiate."

Similar presentations


Ads by Google