1. Create a GUI application that reads from an existing text file of 3 or more Player objects.

2. Verify all user input is valid using.

3. Display these instructions to the user: "Select a player. Enter a wager amount less than the player's balance. Enter a guess between 0 and 5 inclusive. Spin the wheel"

4. If the file does not exist, notify the user with an programmer defined exception message.

5. The Player objects consist of two variables: a String name and a balance amount.

6. Display the Player data in a combo box.

7. When the user selects a Player move the player's name into an uneditable textbox and their balance into an uneditable textbox.

8. Enable textboxes that allow the user to enter a wager amount and one guess.

9. When the user click the "Spin the Wheel" button generate a random number between 0 and 5 inclusive and place the number in an uneditable textbox in the display.

10. Determine if the player's guess matches the random number. If so, then display the fact that the player has won using an alert or dialog box.

11. Add their wager to the player's balance and update the text file and the balance textbox.

12. Create a Play Again button that will reset the display including the combo box with the player's update balance.

13. Create an exit button to end the application.

14. Add Javadoc comments to describe the purpose of every class in the application.

15. Add Javadoc comments to describe the purpose of every method in the application include @param and @return comments.

16. Upon completion of the application generate the Javadoc documentation file. Be sure it includes the entire application documentation.

17. Be sure to test your application with an existing text file and without an existing text file. Use either the JavaFX toolkit or the Swing toolkit.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.