Question: Write a JSF that prompts the user to enter a capital for a state, as shown in Figure 39.34a. Upon receiving the user input, the
Write a JSF that prompts the user to enter a capital for a state, as shown in Figure 39.34a. Upon receiving the user input, the program reports whether the answer is correct, as shown in Figure 39.34b. 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 8.37. Create a list from the array and apply the shuffle method to reorder the list so the questions will appear in random order.

Danel Exercise 33.8- Guess the Si x G localhost:8080/chapter39jsfexercise/faces/Exercise39_08.xhtml What is the capital of Florida? Wilmington Submit (a) Daniel D Exercise 33.8- Guess the Si x D localhost:8080/chapter39jsfexercise/faces/Exercise39 08.xhtml No. The capital of Florida is Tallahassee. Next (b) II
Step by Step Solution
3.27 Rating (173 Votes )
There are 3 Steps involved in it
Figure 3934a Figure 3934b StateBeanjava import javautilArrayList import javautilCollections import j... View full answer
Get step-by-step solutions from verified subject matter experts
