Question: create a JavaFX application that by generating a multiple four choice question on each run, helps its user learn the US states' capitals. Write the
create a JavaFX application that by generating a multiple four choice question on each run, helps its user learn the US states' capitals.
Write the Java code of the above program while
- The correct answer position (including 1st, 2nd, 3rd, or 4th choice) is assigned randomly.
- All the US states are covered.
- The state is selected randomly.
- There must be a button after the question so the user can submit her/his answer.
- No need for sophistication of only one answer is selected. Just when testing your code make sure only one answer is selected.
- If the answer is correct, an appropriate message is necessary.
- If the answer is wrong, the correct answer must pop up on the console with an appropriate message.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
