hello please help with these program requirements thank you so much program descript 5153510
Hello, please help with these program requirements. Thank you so much!
Program Description A football team would like to analyze the weights of some its players. A team may store information on up to 10 players. Player's jersey numbers and weights will be stored in parallel arrays so the jersey number stored at index 3 in the jersey array will belong to the player whose weight is stored at index 3 in the weight array. Write a new version of the program that follows the requirements below Implementation Requirements The program will be written in NetBeans. Topic13project Create a new project named: With a main class named: PlayerWeightAnalysis Within your program code, you must follow all Coding Standards including: Complete JavaDoc style documentation, with a program description, author/version tags, and comments above each method containing method description and @param/@return tags NOTE: Per the Coding Standards, you are not allowed to use break statements to exit from any loop Loops should only exit when their test condition evaluates to false. Test 1 (Read in and store player data) Create a constant to hold the maximum number of players and set it to 10 Then, using the constant, declare and instantiate two arrays that can each hold 10 values an array of integers to store player jersey numbers an array of doubles to store player weights Prompt the user to enter pairs of numbers (player jersey numbers and player weights), until the user enters 0 for a jersey number, as shown below (including the jersey number in the weight prompt) Store the jersey numbers in the array of integers and weights in the array of doubles Keep track of how many players were entered Hints: No calculations should be done from inside this loop and you should think about the most appropriate type of loop to use After reading the player information, display how many player's values were stored. Example Enter jersey number of player (or 0 to stop) 88 Enter weight for player with jersey number 88 222.2 Enter jersey number of player (or 0 to stop): 23 Enter weight for player with jersey number 23 170 Enter jersey number of player (or 0 to stop): 45 Enter weight for player with jersey number 45 88.8 Enter jersey number of player (or 0 to stop): 0 Jersey numbers and weights of 3 playe rs stored Tests 2 and 3 (Display what was read and stored) Display a blank line. Then output the values stored in the arrays, one player per line, with two spaces between the jerscy numbers and the weights (weights formatted to 1 decimal place). Again, no calculations should be done from inside this loop. Example ed player jersey numbers and weights You 222 2 o o 23 170.0 188.8 45 Tests 4 and 5 (Calculate and display the average weight) Add code to Display a blank line Compute the average weight Display the average weight rounded to 1 decimal place Example: Average weight is 193.7 Tests 6 and 7 (Find the Index of the highest weight player) Add a method definition for a method to find and return the index of the highest weight in the weight array. The weight array and player count will be passed into the method as parameters. (Note: For simplicity, you may assume that there wil not be any duplicate weights). Call the method from the main() method, and use the retuned value to display the player jersey number and the player weight (weight rounded to 1 decimal place). Example: Player with jersey number 88 has the highest weight of 222.2 Tests 8 through 10 (Find specific player weight): Add a method definition for a method to find and display the weight of a specific player, given their player jersey number. The player jersey number to find, the player count, and the both arrays, will be passed into the method as parameters. The method will find and display that player's weight (or display “No player with jersey number xxxx” if the jersey number is not found) Add code to the main) method to: Display a blank line Prompt the user for a player jersey number as follows Enter jersey number of player to find: After reading the player jersey number from the user, call the method to find and display that player's weight Example 1 Enter jersey number of player to find: 88 Player with jersey number 88 has a weight of 222.2 Example 2: Enter jersey number of player to find: 11 No player with jersey number 11 Tests 11 and 12 (Find multiple specific player weights) Add a loop to the main) method so that the user can find more than one specific player's weight, as follows: After finding one weight, ask whether to find another player's weight Loop, asking for jersey numbers and finding their weight until the user answer 'n' or 'N' Example Enter jersey number of player to find: 23 Player with id 23 has a weight of 170.0 Find another player weight (Y/N)? Y Enter jersey number of player to find: 88 Player with id 88 has a weight of 222.2 Find another player weight (Y/N)? n Test 13 (Prevent user from adding more players than the arrays can hold) Modify your code so that when the arrays are full (i.e. both contain data about 10 players), the data entry loop exits without asking for another jersey number and this message appears: Maximum of 10 players can be stored. You have reached the limit. Remember to use your constant!