Question: Write a JSP that prompts the user to enter a capital for a state, as shown in Figure 38.16a. Upon receiving the user input, the
Write a JSP that prompts the user to enter a capital for a state, as shown in Figure 38.16a. Upon receiving the user input, the program reports whether the answer is correct, as shown in Figure 38.16b. You can click the Next button to display another question. You can use a two-dimensional array to store the states and capitals, as proposed in Exercise 9.22. Create a list from the array and apply the shuffle method to reorder the list so the questions will appear in random order.

State Capitals - Mozika Firefox Inx State Capitab - Morila Firefox Ele Edit Vew Htory Bookmarks Toos ep Ed yew Hstory ookmarks Took e State Capitals State Captas localhost:8080/chapter38jspexercse/Exercse38_17.sp kcahost s0Boychapter3jsperercse/Exercse38_17D What is the capital of Michigan? East Lansing No. The capital of Michigan is Lansing. Next Subrmit (a) (b)
Step by Step Solution
3.31 Rating (151 Votes )
There are 3 Steps involved in it
Here is an example of a JSP that prompts the user to enter a ... View full answer
Get step-by-step solutions from verified subject matter experts
