[SOLVED] CSC7081 Project 3-Sport stats system

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Assessment-P3-FT-iundwv.zip (702 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Sport stats system

Assignment brief:

Time 3 hr (+1 hr to upload)

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 – 50%

Using your knowledge of OOP you should add/update the code based on the following:

  1. Analyse the data in the playerstats.csv and create a class (Player.java), include the following re-codes…
    1. Country code should be recoded as: 1 = ENG, 2 = FRA, 3 = IRE, 4 = ITA, 5 = SCO, 6 = WAL
    2. 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.
    3. 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.
  2. Conduct a simple unit test for the Player class. (Note there are no other validation or business rules for the Player class).
  3. In the StartApp.java class read and store the data in an appropriate JCF container. Note there will be NO duplicate data entries in the dataset.

    [CONTINUED OVER]

1

Part 2 – Functions – 50%

P3 2020-2021

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…

2. Display all players from Ireland. Example output…

etc…

3. 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)
4. Display all players ordered by height (tallest first). Example output…

etc…

[CONTINUED OVER]

2

P3 2020-2021

  1. 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…

  2. 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).

Now : check the uploads to ensure you have submitted the correct files (in the correct area).

[END]

3

  • Assessment-P3-FT-iundwv.zip