![]() |
![]() Fall Semester 2005 |
JComboBox
es
The assignment for today's lab will consist of only one problem:
Here's the completed application, so you can test-drive it:A geography teacher would like to quiz students on their knowledge of the flags of various countries. The teacher has asked you to write an application that displays a flag and allows the student to select the corresponding country name from a list. The application should inform the user whether the answer is correct and display the next flag. The application should display five flags randomly chosen from the flags of Australia, Brazil, China, Italy, Russia, South Africa, Spain and the United States. When the application is executed, a given flag should be displayed only once.
labSeven.jar
Remember, you have to develop it from scratch, the code provided is meant to clarify the requirements.
Download the contents of the link to your desktop, then run the program as follows from the command line:
java -classpath labSeven.jar FlagQuiz
Here's the way the application will look when you run it.
Your task is to provide an implementation that works exactly as the one you're test driving.
Remember, you have to develop it from scratch, the code provided is meant to clarify the requirements.
And now here are the notes: