[Solved]Javafx Apply Javafx Existing Code Link Download Existing Code Need Apply Instructions Prog Q37051772
(JavaFX) Apply JavaFX to existing code
Link to download the existing code (need to apply theinstructions below to this program)https://megaupload.nz/N9n786d4ne/Assignment3_zip


A. Requirements The assignment requires use of JavaFX which is downloaded and installed separately from Java if you are using a newer JDK. See https://openifx io/openifx-docs You may use a Java IDE, such as Eclipse, for your assignment. Submit the “project folder using your student ID name, with all your java source files stored under the corresponding packages (see “Eclipse Export.pdf” in Canvas for project export details) B. Description The new assignment is an extension to the three previous assignments. The goal is to add a GUI based on JavaFX to the “Multi-Game Winner” while also including exception handling. Assignment description is as follows A random sized personArray that stores objects of type Person. The personArray contains a random number of Player and Staff whose specific numbers may vary between games. During each new game a new set of Player and Staff objects need to be created and stored in the array A random sized winnersArray that stores objects of type Person storing every game winner. This array may be of different size than personArray The system provides a winner per game, and then an overall winner for all games The GUI must include the following functionality:(1) a text entry with a button to input the arbitrary lengths ofpersonArray and winnerArray, (2) a button or menu to initialize the game (calling init_game), (3) a button or menu to play the game (calling find_person_winner and find game_winner), and (4) a “TextArea” (or similar) to display all winners. The program must handle the IllegalArgumentException to manage any exceptions from non-numerical entries to set the size of the arrays in the GUI The GUI should permit re-initializing and re-playing of the game multiple times You may design the GUI as you wish as long as it works and contains all the specified functionality * * . . . . . . You may use the “official” solution from Assignment 3 B.1 Package “person” The person package contains the Person, Player, and Staff classes as described in Assignment 3 B.2 Package “gamie The game package contains the Winner class, containing (1) the init_game method where an arbitrary number of Player and Staff objects get instantiated for each game played, (2) A method called find person winner returning the Person winner after each game, and (3) the find_game_winner returning the winner of all games B.3 Package “gui” The gui package contains the GameGUI class where all JavaFX code is found. You may include multiple classes in this package B.4 Program Output The program output inside the ‘”TextArea” of the GUI is similar to that of Assignment 3 <Person> Id <specificId> from Game <gameId>; Value <val> where <gameId> corresponds to the game number starting from 0 <Person> corresponds to either Player or Staff <specificId» corresponds to either <playerId> or <staffId> type <specificTotal> corresponds to either <totalPlayerNum or <totalStaffNum> <val> corresponds to a random value between 0 and 1 Sample output: Game:0 Staff Id 1 from Game 0; Value 0.9413720497191768 Staff Id 2 from Game 0; Value 0.12675823219989202 Player Id 1 from Game0; Value 0.09728762044279848 Staff Id 3 from Game 0; Value0.1825126176110694 Game Winner is: Staff Id 1 from Game 0; Value 0.9413720497191768 ame: Player Id 1 from Game 1; Value 0.3607839120647821 Staff Id 1 from Game 1; Value0.764314784846852 Player Id 2 from Game 1; Value 0.8184547210782026 Player Id 3 from Game 1; Value 0.26964508660881936 Game Winner is: Player Id 2 from Game 1; Value 0.8184547210782026 Game:2 Player Id 1 from Game 2; Value 0.5013968226832225 Staff Id 1 from Game 2; Value 0.9243218748286065 Staff Id 2 from Game 2; Value 0.892060295283974 Player Id 2 from Game 2; Value 0.9341721291722334 Game Winner is: Player Id 2 from Game 2; Value 0.9341721291722334 Game: Staff Id 1 from Game 3; Value 0.05318193196716425 Staff Id 2 from Game 3; Value 0.9346865563493605 Player Id 1 from Game 3; Value 0.742478514800904 Player Id 2 from Game 3; Value 0.7515432842214887 Game Winner is: Staff Id 2 from Game 3; Value0.9346865563493605 Game Winners: Staff Id 1 from Game 0; Value 0.9413720497191768 Player Id 2 from Game 1; Value 0.8184547210782026 Player Id 2 from Game 2; Value 0.9341721291722334 Staff Id 2 from Game 3; Value 0.9346865563493605 All Game Winner is: Staff Id 1 from Game 0; Value 0.9413720497191768 Show transcribed image text A. Requirements The assignment requires use of JavaFX which is downloaded and installed separately from Java if you are using a newer JDK. See https://openifx io/openifx-docs You may use a Java IDE, such as Eclipse, for your assignment. Submit the “project folder using your student ID name, with all your java source files stored under the corresponding packages (see “Eclipse Export.pdf” in Canvas for project export details) B. Description The new assignment is an extension to the three previous assignments. The goal is to add a GUI based on JavaFX to the “Multi-Game Winner” while also including exception handling. Assignment description is as follows A random sized personArray that stores objects of type Person. The personArray contains a random number of Player and Staff whose specific numbers may vary between games. During each new game a new set of Player and Staff objects need to be created and stored in the array A random sized winnersArray that stores objects of type Person storing every game winner. This array may be of different size than personArray The system provides a winner per game, and then an overall winner for all games The GUI must include the following functionality:(1) a text entry with a button to input the arbitrary lengths ofpersonArray and winnerArray, (2) a button or menu to initialize the game (calling init_game), (3) a button or menu to play the game (calling find_person_winner and find game_winner), and (4) a “TextArea” (or similar) to display all winners. The program must handle the IllegalArgumentException to manage any exceptions from non-numerical entries to set the size of the arrays in the GUI The GUI should permit re-initializing and re-playing of the game multiple times You may design the GUI as you wish as long as it works and contains all the specified functionality * * . . . . . . You may use the “official” solution from Assignment 3 B.1 Package “person” The person package contains the Person, Player, and Staff classes as described in Assignment 3
B.2 Package “gamie The game package contains the Winner class, containing (1) the init_game method where an arbitrary number of Player and Staff objects get instantiated for each game played, (2) A method called find person winner returning the Person winner after each game, and (3) the find_game_winner returning the winner of all games B.3 Package “gui” The gui package contains the GameGUI class where all JavaFX code is found. You may include multiple classes in this package B.4 Program Output The program output inside the ‘”TextArea” of the GUI is similar to that of Assignment 3 Id from Game ; Value where corresponds to the game number starting from 0 corresponds to either Player or Staff
Expert Answer
Answer to (JavaFX) Apply JavaFX to existing code Link to download the existing code (need to apply the instructions below to this … . . .
OR

