$35
You have been given some code that is currently being developed as part of a Sport Stats application specifically analysing recent Six Nations Rugby Player stats. Not all the requirements have been implemented. It is your task to implement these and raise the coding standards of all the code.
Create a project solution (named <Your Name><Student Number>p3 e.g. AidanMcGowan3048614P3). Create a package named p3. Add StartApp.java to the solution and the playerstats.csv. Ensure your name and student number are placed in the Javadoc comments of all the classes you create. The StartApp has been partially written with a menu.
The application will run (start) from the StartApp.java, initially reading in the data from the playerstats.csv file and then perform a number of menu driven operations.
Part 1 – Data mapping, storage and read from file -
Using your knowledge of OOP you should add/update the code based on the following:
Analyse the data in the csv and create a class (Player.java), include the following re-codes…
Country code should be recoded as: 1 = ENG, 2 = FRA, 3 = IRE, 4 = ITA, 5 = SCO, 6 = WAL
Split and record the name separately (two instance vars) as first name and last name such that “Owen Farrell” would be recorded in the Player.java class as First name Owen and Last name is
Farrell.
Include a double field (instance var) in the Player.java class to store the percentage of games won for each player based on the number of games won (Games Won) divided by the total games played (Total Matches) * 100.
Conduct a simple unit test for the Player (Note there are no other validation or business rules for the Player class).
In the java class read and store the data in an appropriate JCF container. Note there will be NO duplicate data entries in the dataset.
Part 2 – Functions –
Having read the data from the csv file complete the menu driven functions as outlined below. An example of the expected format is shown for each function. Note if you were unable to recode the input data as specified in Part 1 for Name and Country use the uncoded raw data (as appropriate). 1. Display all players to screen. Example output…
etc…
Display all players from Ireland. Example output…
etc…
Display the highest point scorer (Points scored) in the format, first name, last name, country, points scored. Example output…
e.g. Keith Wood IRE 356
(note: not actual answer based on csv data provided)
Display all players ordered by height (tallest first). Example output…
etc…
Display each club (in alphabetical order with the cumulative number of games played in the six nations (Total Matches) from each player from that club. Example output…
etc…
Capitalise the Last name for all players. Then in a new Thread export/write to a new file
(playerstats_updated.csv) in the format: Last name, First name and Country. Note, include the header as shown. Example csv output …
etc…
When complete compress (zip) the entire Eclipse solution and upload to Assignments (P3 assessment) on CANVAS. Remember to record and then upload a short commentary walk-through of your code with your solution (upload that too). Keep the separate screen recording safe (no need to upload at this point, I will be sampling these).